ubuntu php eclipse noob question - php

Hi I am new to php eclipse and I have a question about my eclipse interface..
According to the pictures I saw on the internet, the keyword for php will be colored (mysql_connect, echo...etc). However, every words in my php file are plain black. There are no colored keyword. I am sure my file is saved as .php. How would i solve this problem. Thanks for the help....
Upadte:
I installed my eclipse from my software center. I guess that's not the php version. I removed it and tried to download the all-in-one php package. When I unzip and clicked the eclipse file, it said need jdk installation. After I installed my jdk and fired up the eclipse, I can see the php eclipse title in my eclipse, but the keywords are still black....any ideas how to solve this? Thanks

You have to install PDT plugin for eclipse

You might want to install Aptana (Which is Eclipse based) with the PHP Plugin

Related

Where do I download eclipse kepler for php

I don't know why I'm having so much trouble installing eclipse kelpler for php. All I can find is the Java package at http://www.eclipse.org/downloads
I downloaded 4.3 Java version, where do I go to add PHP? I am trying help install new software, but I don't know what URL to use.
ah yes, for windows.
Thanks
For Eclipse Kepler currently you need PDT 3.2
Repository location: http://download.eclipse.org/tools/pdt/updates/3.2/release

Debugging php code using breakpoints on eclipse

I am new to php and running php on my system .
As IDE I am using
Eclipse for PHP Developers
Version: Helios
As server I am using : WAMPSERVER
Basically on eclipse I link my php project to one I have placed in www folder of wamp installation. I do all development in eclipse and then run the project on wampserver.
What I am not able to do is debug the code at all. I want to use breakpoints debugging as I could in Java programming using eclipse.
Please help, I have seen so many threads about xdebug and zend debug, but these have been of no help to me,
Any help is appreciated, let me know if I am doing everything wrong as in using both eclispse and wamp separately.
Thanks

eclipse helios for PHP - code formatter not available

I'm looking at my Eclipse helios (3.6) preferences page, and I can see I can set code formatting settings for the Java code, but not for PHP.
How can I set the spacing for function arguments in Eclipse for PHP. It seems the changes I make for Java don't apply to the PHP code.
I know that when I got Eclipse, I downloaded the version that was specifically for PHP: http://www.eclipse.org/downloads/packages/eclipse-php-developers/heliossr1
It's likely that the version you downloaded is the base version and does not have the additional PHP features included.
EDIT:
Check out http://en.sourceforge.jp/projects/pdt-tools/releases/?package_id=8764 for an Eclipse dropin you can use(the site is in Japanese, but I was able to find the download link easily). This may be what you're looking for. To install, just place it in the dropins folder of your Eclipse install and restart Eclipse.
It took me a while to figure out that was my problem a couple years ago.
Eclipse maintains a section just for PHP Eclipse that includes everything you need for coding PHP in Eclipse.

Cannot create or PHP pages on Aptana

I installed Aptana, but could not find PHP, any idea on how to get the plugin or install the PHP features.
Thanks
Jean
This page at Aptana's site explains how to install the Eclipse PDT (PHP Development Tools) plugin on Aptana.
You must get version 1.5 which works with PHP, I'm using it

Eclipse PDT installation

I have a project that's intended to use some PHP as well as Java and Javascript, so I installed the PDT PHP plug-in for Eclipse, using the Install New Software menu option. Now Eclipse agrees PDT is installed, but no PHP features like creating or editing PHP files are appearing anywhere. Is there something else I need to do to activate PDT? (I did restart Eclipse like it said I needed to.)
Right click on your project, Configure (it's at the bottom of the list)->Add PHP Support...
After it's done, you should see a little P symbol in the project's icon.
Just create new project using the wizard, and choose PHP one. After Eclipse will know that your project is actually based on PHP, it will show you all the features.
In case if you have existing project, just open the PHP perspective.
I've once had a similar problem. Eclipse was running with the JRE 1.4, and it seems the JRE 1.5 or later is required to run the PDT. I switched to Java 1.6 and that solved the problem.
I run into this sometimes with eclipse plugins.
Have you tried uninstalling it, removing the jar and files it from eclipse/plugins and eclipse/features, then installing it again?
If you don't feel like doing that. Try installing it in a clean eclipse instance and if it works then it's just a config issue with eclipse.
You might have not installed all of the tools too.
The solution I eventually came up with was to just install Aptana Studio, a PHP IDE based on Eclipse, whose standalone version can coexist happily with the regular Eclipse on the same machine.
In order to have PHP support in eclipse project, you need to add PHPNature to the project. It's a kind of configuration paramter of eclipse project. When you craete a new PHP project using a wizard, check the .project file in a new project directory. There is a PHPNature line. Copy this line into .project of your java project.
Another solution is to separate java and php code in a different projects, each one craeted by right wizard.

Categories