how to run php script in eclipse

感情迁移 提交于 2019-12-03 03:14:55

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.

You do not need to create this .exe

In Eclipse you need to configure the debugger settings. The debugger needs to know where the php.exe file lives.

Edit: php.exe ships with the standard PHP install on windows. When you download PHP from www.php.net you will find the php.exe file somewhere in the directory you installed PHP in.

Hope this helps :-)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!