无法在 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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-25 17:29:49  来源:igfitidea点击:

Cant add PHP 5 Interpreter on Netbeans

phpnetbeans

提问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.exefile found in my WAMP directory C:\wamp\bin\php\php5.3.13\php.exebut 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但仍然没有......有什么想法吗?我附上了显示错误的图像(在选项窗口中)

Netbeans Options Window interpreter error

Netbeans 选项窗口解释器错误

回答by Pilar

You have to localize the php.exefile.

您必须本地化php.exe文件。

If you are using xamppit is located in c:\xampp\php\php.exe

如果您正在使用xampp它位于c:\xampp\php\php.exe

In case you are using wampit 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...

如果您看到上面的消息,您必须...

  1. Download xampp latest version from http://www.apachefriends.org/en/xampp.html.
  2. After you run netbeans, you get the error message above you should click the "Browse" button.
  3. Go to xamppfolder for example C:\xampp
  4. Click on PHP folder C:\xampp\php
  5. Click on php.exeto tell neatbeans the interpreter directory location. (because it does not come with netbeans package) xampp\php\php.exe
  1. http://www.apachefriends.org/en/xampp.html下载 xampp 最新版本。
  2. 运行 netbeans 后,您会收到上面的错误消息,您应该单击“浏览”按钮。
  3. xampp例如转到文件夹C:\xampp
  4. 点击PHP文件夹 C:\xampp\php
  5. 单击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 设置中设置您的路径