Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Running a PHP web page(Need help configuring Eclipse PDT)
Running a PHP web page [message #651783] Tue, 01 February 2011 10:36 Go to next message
SameerShinde  is currently offline SameerShinde
Messages: 2
Registered: February 2011
Junior Member
Hi,
I am a new user of Eclipse PDT.
I have installed PHP 5.2.17 on my Windows XP PC.
The web server is Apache 2.2.

Path of web folder is
D:\Program Files\Apache Software Foundation\Apache2.2\htdocs

I configured the PHP related settings in web server and I am able to run a PHP file on web server if I put it in htdocs folder. It gives proper output.

Now inside Eclipse I have created a PHP project and created a simple HelloWorld php file.
I configured the PHP settings in eclipse like PHP executables and PHP servers.
When i run this file in eclipse using Run As PHP WebPage option it refers the path as :

http://localhost/myPHP/newfile.php
But it gives error about page not found.

How to let Eclipse store the file on web server or how to publish the same like Eclipse J2EE?

How to refer this file on web server and let web server access it from Eclipse project?

Please help me.

Regards,
Sameer Shinde
Re: Running a PHP web page [message #651827 is a reply to message #651783] Tue, 01 February 2011 13:02 Go to previous messageGo to next message
SameerShinde  is currently offline SameerShinde
Messages: 2
Registered: February 2011
Junior Member
I have a work around for the same.
I set the workspace of eclipse to htdocs folder of apache.
Now the project files get directly created inside htdocs folder and can be run on server.
Re: Running a PHP web page [message #653078 is a reply to message #651827] Tue, 08 February 2011 06:08 Go to previous message
dominik is currently offline dominik
Messages: 122
Registered: July 2009
Senior Member
On 2011-02-01 19:02, SameerShinde wrote:
> I have a work around for the same.
> I set the workspace of eclipse to htdocs folder of apache.
> Now the project files get directly created inside htdocs folder and can be run
> on server.

The better way is to set sync as eclipse builder. Then You will have in htdocs
only files edited, not entire workspace.
Also You can create one project in htdocs folder, for this You create project
and on first step choose "from existing" or something like this. Then point to
folder in htdocs.

/dmc
Previous Topic:Opening and Saving Files Over FTP/SFTP/SSH Connection from Eclipse
Next Topic:Path mapping
Goto Forum:
  


Current Time: Fri Jul 25 21:17:25 EDT 2014

Powered by FUDForum. Page generated in 0.01594 seconds