开发者

eclipse won't work when trying to run php?

I am working on my first hello world project in eclipse, but when i run it, it opens eclipse' built in web browser, and gives me 404 error. I haven't set up any server or anything, I just used the defaults that came with the php plugin for eclipse. The URL that it brings me to is:开发者_StackOverflow中文版 http://localhost/helloworld/newfile.php what am I doing wrong?


If you don't have a server, you can't run a PHP script. You need to have a web server like Apache with the PHP plugin. Try using something like WAMPServer - its an all-in-one install that gives you the servers and MySQL to boot. Once the servers are installed, you can run your scripts there by pointing your Eclipse project at the servers document root. XAMPP is another server bundle like WAMPServer.

Alternaively, here's a tutorial for getting started without either of those options: http://www.tigerheron.com/article/2008/01/eclipse-and-php.


I found this when looking for how to map a network drive in order to open the eclipse workspace through an ftp, and I thought this might help:
http://www.netdrive.net/

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜