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: http://localhost/helloworld/newfile.php what am I doing wrong?
Share
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.