user710502
user710502

Reputation: 11471

publishing php files from eclipse to apache htdocs

How can publish from Eclipse to Apache's htdocs on local?, I remember I was able to do this long time ago but forgot the process. Is there like a setting that i can do in Eclipse so that it publishes any file i add to the htdocs or if I modify it?. Initially I copied the whole folder from workspace and put it in htdocs.. and it runs but now any change I make in eclipse does not get publish.

Appreciate your help.

Upvotes: 2

Views: 2186

Answers (1)

Yes Barry
Yes Barry

Reputation: 9846

I'm assuming your htdocs folder is stored locally. If that is the case, then the easiest route would be to simply create a new workspace whose root directory will actually be the htdocs folder.

In this case:

  1. Go to: File > Switch Workspace > Other.
  2. Click browse and look for your htdocs folder and select it.

Now when you create a new project, your htdocs folder should be the default location in which to create the new project.

Upvotes: 3

Related Questions