Archive for the 'php' Category

php5 migration

06-03-2006 | Comments Off

I recently upgraded my local testing server to php5. Right off the bat I experienced two differences from my previous php4 setup.

First, for the ‘I need a solution quick’ people.

  • Don’t use $PHP_SELF in your forms & links. Use $_SERVER[’PHP_SELF’]
  • To get error reporting back on. Search your php.ini for the ‘Error handling and logging’ section and uncomment (by removing the semi-colon) the type of error reporting you want. (eg. error_reporting = E_ALL)

(more…)

Quit Smoking Calculator

05-31-2006 | Comments Off

I’ve written a php script that calculates:

  • How long it has been since you quit smoking (in days, hours, minutes and seconds).
  • How many cigarettes you have not smoked during that time.
  • How much money you’ve saved since quitting.

I quit smoking on July 15, 2004. The numbers calculated by the Quit Smoking Calculator are amazing.

If your a smoker, former smoker or know someone who is, click over and try it out.

md5 Generator

05-18-2006 | Comments Off

I’ve just added a md5 hash generator to the PHP Toolbox.

I find the need to generate and insert an md5 string into the database lots of times during production of web applications. The md5 generator is a quick way to encrypt passwords for users already created.

If your new to md5 encryption with php, you can read more about it at php.net.

PHP Randomness

03-27-2006 | Comments Off

Finally getting some of the intended content for my PHP Toolbox. I’ve shared my PHP functions for displaying: Random Quotes, Random Text and Random Images.

Hope they help someone.