I've already started developing in PHP, but I've had various issues with the environment: mysql server won't start, can't debug PHP code (even after defining PHP executables), installed apache2 and it didn't work, installed LAMP and still nothing, etc.
Overall, it's just been a mess, so I decided to start over(or any other fix that might pop up). That said, how can I set up a near-perfect PHP environment in Eclipse in which I can debug, run and just not have all this hassle?
I'm running Eclipse Indigo with PDT and PHP 5.3.
Well...you can start reading this:
How To Setup a Local PHP Development Environment in Linux Ubuntu 11.04 with Eclipse Indigo 3.7, LAMP & Xdebug
In addition I would suggest installing:
Eclipse Web Tools Platform (WTP) for your HTML/CSS development
Eclipse Data Tools Platform for your DB development. You can also use PhpMyAdmin.
Related
I am new to PHP scripting language. Basically I am a .Net guy, worked on various web applications using MVC, Razor, ASP.NET, C#...etc. I thought this the best time to practice on PHP and planning to start work on projects using PHP.
I am trying to setup PHP development environment in my local machine.
Please guide me in the following questions.
What are the available software’s I need to install in my machine to start PHP development (SQL, IIS, PHP scrip, TFS)?
In order to create team project I want to use Team Foundation Server (TFS) within the eclipse IDE. Pease tell me someone, how to connect TFS from eclipse IDE (or) any alternate ways?
How to configure IIS to server PHP web pages? Do I need to install additional software other than eclipse?
I have done the following steps,
I downloaded Java from java.com.
I downloaded eclipse from eclipse.org then installed to my machine and pointed to default workspace(C:/users/xxxx/workspace).
Installed add-on phpeclipse to eclipse IDE. This add-on downloaded from phpeclipse.com
Open Eclipse IDE=> help=> Install New Software=> Add.
Name: [PHPEclipse]
Location: [http://phpeclipse.sourceforge.net/update/stable/1.2.x/]
Ok=> followed instruction to complete installation.
After completing the above steps, I just created a new PHP project then wrote echo statement in .php page but it prompting me below error when I run my test project
I am collaborating on a PHP project with a colleague using GitHub. I want to work on the code in Eclipse, and test the web pages within Eclipse. I have installed eGit and PDK in Eclipse. I think I have imported the project into Eclipse properly. Now I want to test some of the pages in Eclipse so I can get an idea of whats going on. Do I have to install a web server on my machine, or is there something built in to Eclipse for this?
You seem to have the hots for Eclipse, but this is web development, not desktop development. If you want to properly test a web application, it is better to use the most popular browsers to test it in, such as IE, Firefox and Chrome.
You will need a web server, yes, here are a few :
http://en.wikipedia.org/wiki/Comparison_of_WAMPs
Note that those are for windows, but some of them are multi platform, such as XAMPP.
Also, for a web development IDE, I recommend PHPStorm, you can try it for free here :
http://www.jetbrains.com/phpstorm/
The PDT plugin of Eclipse doesn't include a web server with it, you can check the main PDT page where it instructs you to install a web server to run and debug your code.
Newer versions of PHP do include a a built in web server to run code so, technically you don't need a web server, but you should probably set up Apache/Nginx to mimic what your code would run on in a production environment for less deployment headaches.
A quick and easy web server would be XAMPP. XAMPP is easy to set up and run and comes with Apache, MySQL, PHP and some other stuff useful for setting up your development enviornment.
I just downloaded PHP Development tools for eclipse and I cant open it, it opens an alert window:
a java runtime environment jre or java development kit jdk must
be available in order to run eclipse for PHP-developers
I installed both jre and jdk and I still get the same alert message.
I have Windows 7 ultimate 64bit running on my computer.
Try this http://www.eclipse.org/forums/index.php/t/288821/ or http://wiki.eclipse.org/Eclipse.ini#-vm_value:_Windows_Example
That might solve it.
please install jreX86, unstall jre64. PHP Development tool(eclipse-php-3.0.2.v20120611144) is
We have a very large enterprise Web application developed using Mojave (MVC) framework in PHP.
Continuous development is still going on. There is an extensive use of AJAX throughout the system.
Debugging an issue is a nightmare currently.
I am wondering if this environment would help in debugging. Or are there any better tools?
Local Development environment:
WAMP
Windows 64
Eclipse PDT with XDebug (Recently installed)
MySQL.
Can we debug Ajax-heavy PHP web applications using XDebug?
Can I setup this project in Eclipse? (Import? Or just open the webroot of the application?)?
Are there any other better tools?
Xdebug doesn't support javascript itself, but you can use the browser extensions (that I've just pointed to in your other question) to start a debugging session when you want it (ie, an ajax-ui action): http://xdebug.org/docs/remote#browser-extensions
cheers,
Derick
Is it possible to debug PHP projects on Glashfish with NetBeans 6.8 without installing Apache server?
After I press CTRL+F5 im getting 404 not found error.
As ASP.NET developer I have (I think) similiar developer server bundled with Visual Studio, so there is no need to install any other server like IIS. Am I right that Glassfish is similiar developer server, so why Im getting 404?
Thanks
Darek
From Netbeans page.
To successfully debug PHP applications in the NetBeans IDE for PHP, you need to have the PHP engine, the Apache local web server, and the XDebug debugger installed and configured for PHP development. If you have difficulties getting XDebug to work, see the NetBeans wiki on XDebug and/or ask the community at users#php.netbeans.org.
I hope it helps