Library/PHP

Using .htaccess to override php.ini settings
.htaccess files can be used to override php.ini settings. This is very useful on servers where you may not have permissions to change the base php.ini file. The syntax is as follows:

php_flag variable.name "value goes here"

Examples:
 * Captcha uses the session.save path and needs to be redirected to writable folder

php_value session.save_path "/home/username/tmp"

Finding Short Tags with grep

 * - thanks Joseph Scott

Creating a new table

 * From http://php.about.com/od/troubleshooting/u/mysql_basics.htm

Fetch all rows WHERE
"; ?>


 * From http://php.about.com/od/troubleshooting/u/mysql_basics.htm