Forum Moderators: coopster

Message Too Old, No Replies

Executing php file

beginner's troubles

         

bimbo

8:50 pm on Sep 29, 2003 (gmt 0)

10+ Year Member



Hi guys,
I am absolute beginner in PHP. I have just created my first "Hello world" php file. I saved it in the DocumentRoot directory as Hello.php. When I try to open it with a browser, the file is not "executed", but instead the "File Download" window pops up asking me to open or save a file.
I have Apache 2 and php installed and I have already entered as follows into httpd.conf:

LoadModule php4_module c:/php/sapi/php4apache2.dll
AddType application/x-httpd-php .php .html
...
DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs"
...

Thenks for any help

bimbo bob

coopster

9:02 pm on Sep 29, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I'm assuming you have setup your server to run as module as opposed to CGI, correct? If so, make sure you have the path correct to the module php4apache2.dll. Can you confirm that this dll is indeed in the c:/php/sapi directory? Oh yeah, don't forget to stop the Apache server and restart it after editing your conf files.