无法在 Netbeans 上添加 PHP 5 解释器
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/18405005/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Cant add PHP 5 Interpreter on Netbeans
提问by CodeGodie
I'm currently trying to add the Codeigniter framework to Netbeans. I followed all instructions to download the plugin as noted here : https://kenai.com/projects/nbphpci/pages/NBInstall, but after all is done and Netbeans is restarted, I try to create a new project but an error comes up saying
我目前正在尝试将 Codeigniter 框架添加到 Netbeans。我按照此处所述的所有说明下载插件:https://kenai.com/projects/nbphpci/pages/NBInstall,但毕竟完成并重新启动 Netbeans,我尝试创建一个新项目,但出现错误说
PHP Interpreter must be selected
必须选择 PHP 解释器
I tried pointing it to my php.exe
file found in my WAMP directory C:\wamp\bin\php\php5.3.13\php.exe
but still nothing... any ideas? I attached an image where the error shows (in the options window)
我试着将它指向我php.exe
在 WAMP 目录中找到的文件,C:\wamp\bin\php\php5.3.13\php.exe
但仍然没有......有什么想法吗?我附上了显示错误的图像(在选项窗口中)
回答by Pilar
You have to localize the php.exe
file.
您必须本地化php.exe
文件。
If you are using xampp
it is located in c:\xampp\php\php.exe
如果您正在使用xampp
它位于c:\xampp\php\php.exe
In case you are using wamp
it is located in c:\wamp\bin\php\php.exe
如果您正在使用wamp
它位于c:\wamp\bin\php\php.exe
回答by Wria Mohammed
If you see the message above you have to...
如果您看到上面的消息,您必须...
- Download xampp latest version from http://www.apachefriends.org/en/xampp.html.
- After you run netbeans, you get the error message above you should click the "Browse" button.
- Go to
xampp
folder for exampleC:\xampp
- Click on PHP folder
C:\xampp\php
- Click on
php.exe
to tell neatbeans the interpreter directory location. (because it does not come with netbeans package)xampp\php\php.exe
- 从http://www.apachefriends.org/en/xampp.html下载 xampp 最新版本。
- 运行 netbeans 后,您会收到上面的错误消息,您应该单击“浏览”按钮。
xampp
例如转到文件夹C:\xampp
- 点击PHP文件夹
C:\xampp\php
- 单击
php.exe
告诉neatbeans 解释器目录位置。(因为它没有自带 netbeans 包)xampp\php\php.exe
回答by user2520217
Run Netbeans as administrator So you can set your path in the php setting
以管理员身份运行 Netbeans 这样您就可以在 php 设置中设置您的路径