I am running Apache 2.0.54 and PHP 5.0.3 on a Windows 2K PE laptop. I first installed Apache and connected to http://localhost
to test installation -- it worked fine. I then downloaded PHP5 (Binary) and followed configuration steps. I created a php test file (phptest.php) and saved to my doc_root (c:/www/apache2/htdocs). In this file I embedded php script into html script. When I go to my browser and type http://localhost/phptest.php
, I get an error message "Error 404 - Page Not Found". I noticed that whenever I try to save the test file in Notepad, Windows insists on changing extension to .txt. In Apache error log, I see an error "Client 127.0.0.1 -- File Does Not Exist - C:/www/apache2/htdocs/phptest.php."
One other quick question: In PHP.ini file, what value should I put for "User Dir?" Should this be the location of my web docs (C:\www\apache2\htdocs)?
I am very new to PHP and programming in general, so any hints, suggestions or advice would be greatly appreciated.