This weekend I needed a couple of MySQL query items that were out of the ordinary, so I thought I would write about them. ADDDATE or DATE_ADD both work the same, but came in very handy. I was struggling with an application where I need to have the date 42 days from now. PHP doesn’t… Continue reading MySQL ADDDATE or DATE_ADD
Category: php
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… Continue reading Zend Studio IDE knowledge nuggets!
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… Continue reading Using bitmask permissions like Unix in PHP application
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… Continue reading Upgraded a server to PHP 5 from PHP 4