Cant add PHP 5 Interpreter on Netbeans - php

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
PHP Interpreter must be selected
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)

You have to localize the php.exe file.
If you are using xampp it is located in c:\xampp\php\php.exe
In case you are using wamp it is located in c:\wamp\bin\php\php.exe

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 example C:\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

Run Netbeans as administrator
So you can set your path in the php setting

Related

How to launch PHP on Atom?

While changing file from .html to .php extension it shows me message that there is no PHP interpreter found at php. And it is not about script support it is should launch on the browser. Clicking the "the set PHP" button it shows me the ide-php package. And I see no way how to set the Path.
Atom settings.PHP settings
you cant run php without a server, you need to install XAMPP (in case of windows you could use WAMP or in case of mac you could use MAMP).
you can download XAMPP from the link below:
https://www.apachefriends.org/download.html

I am getting error in wamp for PHP in path

My wamp server icon is currently orange, which means only 2 out of 3 servers are running. I can not open my phpmyadmin page because it gives 404 not found error. if I right click on my wamp icon at the bottom I get an error saying Error: C:/wamp64 or PHP in PATH. If I click on this error then a command prompt window appear saying this:-
Sorry,
There is an error.
There is Wampserver path (c:/wamp64)
into Windows PATH environnement variable: (C:\wamp64\bin\php\php7.2.4)
It seems that a PHP installation is declared in the environment variable
PATH
C:\wamp64\bin\php\php7.2.4
Wampserver does not use, modify or require the PATH environment variable.
Using a PATH on Wampserver or PHP version
is detrimental to the proper functioning of Wampserver.
Press ENTER to continue...
To repress this error notification: right-click on System Tray wampserver icon and hover on "Wamp Settings" >> select "Do not verify PATH"
As indicated, you do not need a path on a PHP version in the Windows PATH environment variable.
Control Panel
System
Advanced system settings
Environment Variables button
System variables
Select PATH
Modify
Select C:\wamp64\bin\php\php7.2.4
Press OK
I meet the same issue.
Maybe it's because your port 80 is used by other programs you don't need to add path just change your port 80 -> 8080
If you use Composer commands, you need to add PHP path in the Windows PATH Environment Variable. Otherwise, you don't.
I am using Laravel framework and usually install packages by command lines. I have to keep PHP path in WEV although WampManager told me that error.
You should be careful on checking PHP version. The http://localhost/ will give you the PHP version selected by WampManager. If you use command line "php -v", it will give you the version added in Windows PATH.

netbeans 8 does not refer to the actual PHP file path, when running a PHP file

I have installed php, mysql and nginx properly.
I am able to run the PHP pages from Eclipse, i.e Eclipse opens up chrome, and pages are displayed correctly.
I imported my existing PHP project into Netbeans.
When I try to run any of the php pages, netbeans opens up chrome, but the web address is always the same, and not the real path of the PHP file.
Why netbeans refers to the same location, instead of trying to run the file from its real path? how can I fix it?
Thanks,
Qwerty
I found the solution.
The green "play" button in Netbeans does not run the current file, but runs the PROJECT! This caused eclipse to run the project path instead of the current file location!
Therefore, in order to run the current file click on "Run -> Run File" (Shift +F6), and then it works.
Just make sure that the project path is set properly in "Run->Set Project Configuration -> Customize", and then set the project URL to:
http://localhost/
That`s it!
Thanks,
Qwerty

how to run php script in phpeclipse

I was downloaded the phpeclipse from the eclipse downloads.
i have wamp in my machine(c:/wamp/).
i set path like c:/wamp/php/php.exe in system environmental varariables path.
now i want to run php script from phpeclipse.
what i have to do to run php script.
is there any runconfigurations in the phpeclipse.
if exists...how can i configure those things?
is there any documents exists related to that?
is anybody explain me in detail?
thanks in advance.
regards
kk
In order to run your php project in Eclipse you need to edit the server configuration in the Eclipse . do the following .
In Eclipse Go to Window->preferences
On the left panel you see PHP expand the tab click on PHP Servers
On the right side you will see Name as Default local host with url click on it and edit it
A pop up will appear you will see two menus Server and Path Mapping click on Path Mapping
Enter the Path of the virtual directory ie path of wamp www directory , if you are on linux just enter /var/www.
Finally run the project
Hope it helps !

Zend_Tool setup problems

hai
I read that to create a project, execute the zf Windows windows command (zf.bat):
C:\>zf.bat create project newproject
I saw zf.bat in my C:\wamp\www\Zend\bin, I want to create a new project in c:\wamp\www
When I tried to run c:\wamp\www\zf.bat, I got an error message:
"zf.bat is not internal or external command, operable program or batch file.."
Then I tried another method:
c:\wamp\zend\bin\>zf.bat create project newproject
But I got the following error message:
"php is not recognised internal or external command,oprable program or batch file"
I put the Zend Framework in c:\wamp/Zend and I added C:\wamp\zend\library in to my php.ini.
Please help me troubleshoot this problem.
Thanks!
You need to add php and the zend framework paths to your system environmental variables:
Right click on My Computer and select properties
Go to the advanced tab, and click on Environmental Variables
In the system variables box, scroll till you find the "Path" variable, select it and click the edit button.
Paths are separated using a semicolon ";". Add the path to the zend framework bin folder, and your php bin folder.
Click ok,ok,ok
You should now be able to use the zf command line tool anywhere you need it by typing "zf" to get the help info and to ensure you put the paths in properly.
Hello you probably need to have php.exe on your path to use zf.bat
try to edit the zf.bat and make sure to use the full path in the script your php.exe is probably located in your wamp directory somewhee

Categories