Rooneyl
Rooneyl

Reputation: 7902

Create new PHP project in Eclipse (existing sources)

I have a PHP project sat on a remote server.

Can I create a new project in Eclipse by downloading the sources from the remote server.

If so, some instructions on how to do so please.

Upvotes: 2

Views: 18393

Answers (4)

Kirk
Kirk

Reputation: 11

It depends on the type of source control software. You can install git, svn or cvs modules. The steps to take are:

  1. Install module for git, svn or cvs
  2. Create new {git|svn|cvs} project, enter the server information
  3. Then it takes you to what kind of project to create, so create a PHP project. (This assumes that there isn't an eclipse project already submitted to version control.)

Upvotes: 1

Swatantra Kumar
Swatantra Kumar

Reputation: 1330

You can do the same, by fooling the local system.

  • Create a Network Location drive
  • Go on your desktop Right click > Add a Network Location
  • Choose a custom Network Location
  • Pass a Internet IP or network Location

e.g.

\\server\share (shared folder)
http://swatantra.info/share (Web Share)
ftp://ftp.swatantra.info (FTP site)
  • Now it is similar to your normal local drive mapped as (Z:\ or so)
  • Go on with your normal project creation stuff

Upvotes: 0

Justin T.
Justin T.

Reputation: 3701

There is no direct way to do that, at least with standard install of Eclipse PHP

You would usually use "File > Import..." or "File > New Project > PHP Project..." menus for that, but I have never seen this option anywhere in Eclipse.

So this is one of three solutions :

  • get a local copy of the php code
  • import from source repository (e.g SVN, CVS, Git). (you do use one of these for your project, do you ?)
  • switch to another IDE, NetBeans, which support "PHP Application from Remote Server", while being lighter IMHO.

Upvotes: 1

dimitrisli
dimitrisli

Reputation: 21381

Not that I am aware of. Even when you remote debug you would still need a copy of the sources locally.

Upvotes: 0

Related Questions