Quick way to figure out a past date in PHP. echo date("Y-m-d", strtotime("20 days ago"));echo date("Y-m-d", strtotime("20 days ago")); echo date(’Y-m-d’,strtotime(’12/15/2008’));echo date(‘Y-m-d’,strtotime(’12/15/2008′));
I recently realized a few things that I didn’t know about the Zend Studio IDE. As many know I have used the Zend Studio IDE for PHP development for some time. All along I have been using the templates built into the IDE, and never realized that they could be changed since I had no… Continue reading Zend Studio IDE knowledge nuggets!
Have you ever wanted to give read/write/Delete type of permissions to users or other items within a PHP application?Â Why not use Unix-style file permissions (read/write/execute for example)?Â A PHP implementation can be used for any kind of permissions in scripts and applications. Use powers of two (the reasoning behind this will become apparent when… Continue reading Using bitmask permissions like Unix in PHP application
Everything went pretty smooth while upgrading a server for a customer. I was moving them from Fedora Core 3 to Fedora Core 4. This also meant that PHP 5 was installed instead of PHP 4, and MySQL 4.1 was installed instead of MySQL 3.23. All was working smoothly except one of the websites on the… Continue reading Upgraded a server to PHP 5 from PHP 4