开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜