I have recently installed PHP 7 from source on a fresh minimal CentOS 7 box. No previous version of PHP was installed, and I thought I’d give 7 a spin. There were a few pitfalls I hadn’t come...
Learn MoreI was working on a project the other day that required to determine which category a new post would go into, depending on the post title. This was important because posts were automatically acquired without...
Learn MoreSay you had domain.com/folder, and you’d like it to automatically redirect to domain.com/otherfolder, do the following: <?php // redirecting elsewhere header("Location:...
Learn MoreSometimes you need to test your projects against multiple versions of PHP. If you’re using MAMP that’s fairly easy to do: head over to the MAMP Start Screen, select Preferences and see two...
Learn MorePHP has a handy function called filesize() which can help us display how big a file is. It does this in bytes by default, but with a bit of tinkering we can easily convert this into kilobytes or megabytes....
Learn More