My issue is that my php code isn't working - it just gets ignored.
I'll start at the beginning and try to give as much detail as I can. I am running Windows XP SP2. In the past I was running Apache 1.3.26 with PHP 4.2.2 and everything was working great. I then decided it was time to upgrade Apache and PHP.
I upgraded Apache to 2.0.59 (I actually tried Apache 2.2.3 first but then found out it wasn't compatible with PHP 5.x) and PHP to (5.1.6). I installed Apache to "D:\Program Files\Apache Group\Apache2\" and PHP to "D:\php5.1.6\".
To start out with, I removed all of the php files that were in my "C:\Windows\System32\" directory from my old PHP 4.2.2 install.
Next, I got my Apache server running by adding the following lines to the httpd.conf:
LoadModule php5_module "D:/php5.1.6/php5apache2.dll"
PHPIniDir "D:/php5.1.6/"
AddType application/x-httpd-php .php .html
AddType application/x-httpd-php-source .phps
I also added "index.php" to the following line in my httpd.conf:
DirectoryIndex index.php index.html index.html.var
Next, I added “;D:\php5.1.6” to the end of my Path Environment System Variable.
Next, I added a new Environment System Variable called PHPRC with a Value of “D:\php5.1.6”.
Next, I made the following changes to my php.ini:
Changed {doc_root =} to {doc_root = D:\Program Files\Apache Group\Apache2\htdocs}
Changed {extension_dir = "./"} to {extension_dir = D:\php5.1.6\ext}
Changed upload_max_filesize from 2M to 100M (This is for my picture gallery I have)
Changed session.auto_start from 0 to 1 (From what I understand, this is so I don’t have to start the session in the php pages).
My website is www.paulandlori.com. If you click on the “Sheepshead Wagering” link you’ll see what I’m talking about with the php being ignored.
If any of this doesn’t make sense or I left something out please let me know.
Any help would be greatly appreciated. Thanks!