PHP Tips and Tricks PHP Tips and Tricks
These are some common PHP and MySQL coding tips.
I believe these are good do's and don'ts, that most experienced coders would agree with, and not just my opinions.
Note: in my examples, I'm using the new arrays ($_GET/$_POST/$_COOKIE/$_SERVER) because I'm assuming that you're using at least PHP 4.1.0. If you have an older version, then use the old, longer arrays ($HTTP_GET_VARS/$HTTP_POST_VARS/$HTTP_COOKIE_VARS/$HTTP_SERVER_VARS). But you should upgrade because of the file-upload vulnerability in unpatched versions prior to 4.1.2. That's a tip by itself!
__________________ Thanks & Regards
Sabari... |