Tag: php

  • Get past date or convert different date format with php

    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(’12/15/2008′));

  • Zend Studio IDE knowledge nuggets!

    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 […]

  • Using bitmask permissions like Unix in PHP application

    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 […]

  • Upgraded a server to PHP 5 from PHP 4

    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 […]