Browser not loading Php pages
Im using a linux machine, and I followed the instructions seen on http://jm2.php.net/manual/en/install.php to setup php, apache and my sql.
I did exactly what it said and nothing more, but when I try to open a .php file with firefox or chrome, it downloads...?
开发者_StackOverflow社区Im following a tutorial on learning php seen here: http://devzone.zend.com/node/view/id/625
Note that if you have a file://
URL in the browser address bar it isn't interacting with the server to process the page.
You will need to use http://localhost/path/to/page/page.php
According to this howto:
http://jm2.php.net/manual/en/install.unix.apache.php
Please make sure you did steps 14 and 15, what is happening - probably your webserver doesn't recognize php scripts AS php scripts, and sends those to your browser - resulting in either download or displaying the source.
Thanks
精彩评论