PHP Wamp doesn't run [closed]

痞子三分冷 提交于 2019-12-08 05:40:42

问题


I am trying to run WAMP under my XP. I installed it to C:/wamp, than copied old php files for example like test.php to the www folder in wamp folder, than run it throungh browser from adress file:///C:/wamp/www/test.php. It includes < ?echo("a");? >

but it still run like html without running code and showing php in source code.

What am I doing wrong?

I was thinking if there exist some browser which will automatically executes php and includes mysql database apache.

Is there something?

And at best run ajax and asp serverside parts


回答1:


You are showing the file directly by the browser, nothing related to wamp.

What you should do is start wamp (maybe need some config, for example the path, the port .)

Then access your page like : http://localhost/test.php.



来源:https://stackoverflow.com/questions/10565125/php-wamp-doesnt-run

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!