如何在eclipse中运行php脚本 [英] how to run php script in eclipse

查看:273
本文介绍了如何在eclipse中运行php脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了Eclipse PDT-all-in-one-win32-2.0.0GA和WampServer 2.0。



我试图在eclipse中运行PHP脚本,但是这个错误:



目前的调试器没有任何定义的PHP可执行文件。



如何创建此.exe?

解决方案


好,但我没有php.exe。我只在我的项目中创建Test.php。


为了运行**。php *文件,您将需要安装PHP,并且因为您已经安装了WAMP,所以应该很好。


目前的调试器没有任何定义的PHP可执行文件。


如果您已安装WAMP,请尝试在本地硬盘驱动器上查找 php.exe 然后在Eclipse中设置导向它的路径(例如, c:\wamp\bin\php\php5.2.9-2\php.exe )。转到 Window\Preferences\PHP\PHP可执行文件,并将此路径添加到列表中。


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 ??

解决方案

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.

这篇关于如何在eclipse中运行php脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆