Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to run php script in eclipse

I installed Eclipse PDT-all-in-one-win32-2.0.0GA and WampServer 2.0.

I try to run as PHP Script in eclipse but I have this error:

"The current debugger does not have any defined PHP executable."

How do I create this .exe ??

like image 819
user90714 Avatar asked May 20 '09 15:05

user90714


1 Answers

Ok But I do not have php.exe. I only create Test.php in my project.

In order to run **.php* files, you will need PHP installed, and because you already have installed WAMP, you should be fine.

"The current debugger does not have any defined PHP executable."

If you have installed WAMP as you said, try to look for php.exe on your local hard drive and then set path in Eclipse that leads to it (eg. c:\wamp\bin\php\php5.2.9-2\php.exe). Go to Window\Preferences\PHP\PHP Executables and add this path to the list.

like image 76
mtasic85 Avatar answered Oct 08 '22 10:10

mtasic85