Eclipse for PHP Developers: how to open a PHP page

jsn

Registered
Hi all

I just downloaded Eclipse for PHP Developers for Mac Os X, and created my first PHP page typing <?php phpinfo() ?>

What I do not know is how to test it using Eclipse, because by default Mac goes to the folder:

/Users/<user name>/Sites/test.php

and opens with the url:

http://localhost/~<username>/test.php


But the project is created in

/Users/<username>/Documents/workspace

So how can I run in?

Please advise!
 
PHP can be used both for web scripts and normal scripts. When you run PHP on Eclipse, I guess you have to tell what mode you are using it.
 
If you're developing php for the web, you'll need to move the pertinent .php file(s) from the Eclipse working directory into one of your web server directories, then access that file through a web browser.
 
Back
Top