Simple example of how to add comments to your pages not unlike the user's annotated manual at http://www.php.net/ You may want to use URLs as a key instead of productid to be
even more like PHP's annotation facility.
A global search and replace using PHP. You'll need to specify several parameters as GET/POST parameters: oldword=[text to replace] newword=[new text] rootpath=[path to dir
containing files to alter] Note also that PHP must have read/write access to the files to alter them.
Since mysql_select_db and its ilk does not provide a way to determine the previously selected database for a generalized approach to database selection, here's a "roll your own"
that keeps a record of the previous database selection.
//Returns 0 if two versions are equal. //Returns -1 if $version1 is less than $version2 //Returns 1 if $version1 is greater than $version2 //See strcmp //NOTE: Does not handle
"Beta", "RC", or any other non-numeric version //designation.