XAMPP won't run php [closed]

六月ゝ 毕业季﹏ 提交于 2019-12-13 11:02:30

问题


I've installed XAMPP on a 32-bit windows xp machine. Their splash page at localhost looks fine, but i can't get my own php echo tests to run. They only display the code, not the page itself. I've tried putting my files in different places in their directory hoping something will work. I've also tried other free servers with no luck, but have since removed them. Where(?) is localhost on my machine? any help greatly appreciated, thanks.


回答1:


XAMPP usually stores the web-accessible files in an htdocs folder. Find this and prepend http://localhost/ where local/path/to/htdocs would be, and if XAMPP is running, it should work.

So a file (in Windows) named and found in c:\xampp\htdocs\test.php would be http://localhost/test.php.

See: http://www.apachefriends.org/en/faq-xampp-windows.html#startpage



来源:https://stackoverflow.com/questions/7135381/xampp-wont-run-php

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