I finally decided to upgrade to PHP 5.0.2 from PHP 4.3.5.
I read the manual, and started off by backing up and removing all the old files. THen I unzipped the new folder to d:\php (same as before). After doing so, I modified the php.ini file and placed d:\php in my system's PATH environment variable. Then I read the installation for Apache 1.3.x (note, I already have Apache installed). I noticed I needed to change a few things again.
The manual says I need to all the following lines to my httpd.conf file -- is this correct?
For PHP 5
LoadModule php5_module "c:/php/php5apache.dll"
specify the directory where php.ini is
SetEnv PHPRC C:/php
I have the following lines in my httpd.conf file from my previous install of PHP 4 -- do I need to keep these lines in?
ScriptAlias /php/ "D:/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php.exe"
Right now I have added the two recommended lines and have commented out all my old ones except the AddType line.
I am getting four different types of behavior from my PHP files. First, for some files I am prompted to download them, others (that do not contain anything by PHP; such as files that are included for functions, ect.) are rendered as plaintext, and then others work fine, except the page is not displayed because I get an error about an undefined function (usually mysql_connect()). Finally, some pages do work.
Also, it seems extensions are not being recognizd. I have, AFAIK, set the extension_dir directive correctly, and the extensions do exist, but they are not being recognized.
😕