Meetings every second Tuesday
Documentation for PHP IDE in Eclipse
Hello everyone, I'm new to the site and pretty new to php also. I currently do some programming on a site that is written in php. I want to start using the PHP IDE eclipse plug-in so I can get a better handle on the site. I was able to get the plugin installed and create a new PHP project and then import the code base into the project. I cannot seem to find any documentation though that can explain the features of the plugin better to me. I'm also new to Eclipse too.
Before I was using vi and making changes to the code base that lies in /var/www on my server at home. I would like to know how I can make changes to the code base in Eclipse and then have those changes be reflected on the server without having to copy the changed file over to the /var/www directory.
Any help or links to documentation would be greatly appreciated.
Thanks,
Aaron




Eclipse projects
when you start an Eclipse project (including a PHP project), you have the choise to select what dir to base the project out of (defaults to something like myhomeDir/workspace). So if /var/www is on the machine you are developing on, then piece of cake, just point to that. If not (which I think is your case), then you need to trick your machine into thinking /var/www is a local dir. This could be done various ways depending on your OS, samba mount, sshfs mount, etc.
As for documentation on PHPIDE, there is none, :-0.
I have found the newsgroup at news://news.eclipse.org/eclipse.tools.php to be helpful (sign up here http://www.eclipse.org/newsgroups/). You might also keep an eye on http://www.zend.com/phpide for upcoming docs
I usually run a LAMP stack on my local machine to develop with and then use svn (subclipse) to sync code with the remote web server.
hth,
Sam
Thanks
Thanks Sam, that helped out a lot. I was able to get everything working locally. I will need to tinker a bit with it when I get everything going on the server. I'm currently putting the code into CVS on the server. You mention that you use SVN, if I have a medium sized website and don't know to much about version control systems would CVS be good for my needs or should I look into using SVN for its enhancements?
I will get signed up on the newsgroup and keep an eye on the zend site also.
Thanks for all of the help.
Merry Xmas
Aaron
SVN
sorry for the delayed response...(xmas and all that)
If you are just getting into source control, I would certainly go with svn (subversion). It is essentially replaces cvs. Eclipse 'knows' CVS out of the box, but just add the subclipse plugin (http://subclipse.tigris.org/install.html) to it and it will know svn just as well.
Eclipse+PHP
I signed up for the Eclipse newsgroups but could not make it work from the Email they sent me. So I went back to your message and saw "news.eclipse.org" - not mentioned in their instructions - and it works.
Question about EclipsePHP: I found the download area for it and see several different versions for different situations. I have Eclipse and PHP on my machine already - so which version of the download do I need? Thanks for any comments - seems I am somewhat dense.
Installing Eclipse phpide plugin
You can download the phpide as a plugin through the update manager that comes with Eclipse. Go to this link here.
http://www.zend.com/phpide
and then follow the directions for
Download via the Eclipse Update Site
Hope that helps
Aaron
PHP IDE
Thank you for the reply - I followed the steps required and it was fine until the download - get an error message.
requires feature "org.eclipse.emf (2.2.0)" or later version.
I had even done an Eclipse update, since my install, before following your instructions. Any comments? Thanks.
This Eclipse is just amazing especially as free.
Flex 2 is also added to my Eclipse - if that is important.
PHP IDE installed (I think)
Figured out how to install all the software that kept being shown as required before PHP IDE could be installed. Have not tried it yet.
Kept getting the message that the software was not "signed". Not sure what that means but I have it installed now so perhaps it will become clear - or not. Perhaps some comments here?
PHP IDE
I believe that the signed message means that it is not from a "trusted" source, which means it is not part of the Eclipse repository. I could be wrong on that though and hopefully someone will correct me if I am.
I ran into some dependency problems to when installing. I just installed what it asked for and everything moved along.
You can see if it successfully installed by going to File->New->Project and then you should have a PHP item that will let you create a new PHP project if you do not see that then something went wrong. If I come across any documentation I will post it. I have been using it tonight and I like but something keeps making me want to go back to VI. I will become attached to it though eventually.
PHP IDE prerequisites
There are a few prerequisites for PHPIDE so you may want to use the 'All in one' installs (includes Eclipse, the prereq's, and phpide) at least to get started.
found at eclipse or Zend
Once you have the phpide installed, use the update procedure (Help->Software Updates->Find & Install...) periodically as this is a fast evolving project and there are updates every few days.
as for the "software was not signed" messages, I wouldn't worry to much about those. Plugin writers are able to 'sign' there plugins but no one ever does, so you will just have to accept the message and let it install (same issue with most FireFox extentions) See "Step 9" of the subclipse install notes.
Eclipse 'All in one'
I did not want to do the 'All in one' because I already had Eclipse 3.2 with Flex2 in it so I thought I would have to reinstall Flex 2 if I did that. And it turned out to be both easier than I thought and a learning experience about Eclipse. Not only Flex 2 but also Eclipse will take some learning.
Looking forward to the Flex 2 meeting.