Problem with opening php files on localhost
Posted: Sun Mar 08, 2009 3:11 pm
I did a search, but didn't find any answers so hopefully someone has an idea what is wrong with my set up.
I'm using php 5.2.6 and Apache 2.2 as I work my way through the PHP & mySQl for Dummies book.
I've saved a couple php files in the htdocs folder that Apache looks at for php files.
If I type in the URL bar in Firefox: localhost\test.php, it works great. However, if I type in:
"C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/test.php"
or open up the folder and double click on the test.php file, I get a blank page with a box asking me what application to open the file with.
My Apache config file has the following setting activated:
DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs"
so as far as I can tell, it is set correct.
Is there something I am missing?
Thanks!
I'm using php 5.2.6 and Apache 2.2 as I work my way through the PHP & mySQl for Dummies book.
I've saved a couple php files in the htdocs folder that Apache looks at for php files.
If I type in the URL bar in Firefox: localhost\test.php, it works great. However, if I type in:
"C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/test.php"
or open up the folder and double click on the test.php file, I get a blank page with a box asking me what application to open the file with.
My Apache config file has the following setting activated:
DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs"
so as far as I can tell, it is set correct.
Is there something I am missing?
Thanks!