PHP is a web scripting language that allows you to enhance
your website by adding logic, MySQL database connectivity
or dynamic content. PHP-enabled web pages are treated just
like regular HTML pages and you can create and edit them the
same way you normally create regular HTML pages. We offer
both PHP versions 3 and 4.
DO PHP3 AND PHP4 CO-EXIST?
Each version of PHP requires the use of a different extension:
.php3 or .php
You must name your files with the .php3 or .php file extension.
PHP3 scripts run as the user nobody, so if you want a script
to write to a file, you need to create a directory with 777
permissions (drwxrwxrwx), and have the PHP script write to
a file within that directory. You must have an Ecommerce or
Max Plan to use PHP3 with a MySQL database, and PHP3 scripts
will run over the SSL (secure server).
PHP4 scripts run as the username of the account owner,
so no special file permission settings need to be set. You
must have an Ecommerce or Max Plan to use PHP4. PHP4 scripts
will NOT run over the SSL (secure server). If you want
to run a PHP4 script over the secure server, you will need
to rename the file to have a .php3 extension, and make sure
the script will work with PHP3 (i.e. have no PHP4 specific
functions or commands).
PHP WITH MySQL
Make sure you use the mysql_close() function after you've
opened a mysql database connection, and have performed your
query. The mysql_close() function must be used in php scripts
to ensure all database connections close properly. Failure
to do so may result in script failure as all available database
connections will be exhausted.
Do not use the mysql_pconnect function to access your mysql
database. There is a bug with PHP that will cause your php
scripts to fail if you use the mysql_pconnect function. Please
use mysql_connect instead.
Tutorial on converting ASP pages to PHP