WAMP and NetBeans
Posted by: Dequ (---.range86-138.btcentralplus.com)
Date: September 26, 2012 07:17PM

I am trying to use PHP in CLI using the Terminal Window in NetBeans.
But despite adding the php.exe location in the WAMP to the System Variables PATH, I am unable to run PHP commands.

Any ideas or notes on how to solve this would be much appreciated.

Options: ReplyQuote
Re: WAMP and NetBeans
Posted by: RiggsFolly (---.as13285.net)
Date: September 26, 2012 11:31PM

I guess if netbean launches a command window you are going to need to set up the environment so it knows about the PHP CLI

In the termnal window just keyin >php
If it says something like cannot find it then try this.

I use a bat file with this in it


echo off
path=%path%;d:\wamp\bin\php\php5.3.13;d:\wamp\bin\mysql\mysql5.5.24\bin
php -v
mysql -V


Make sure you change the php and mysql versions to match your installed versions

I put this .bat in a folder that is on my PATH. I then run this .bat in every commmand window I open if I want to use the PHP CLI. This means I do not have to add php and mysql environment to my standard PATH.

Hope this helps

Options: ReplyQuote
Re: WAMP and NetBeans
Posted by: Dequ (---.range86-132.btcentralplus.com)
Date: September 30, 2012 02:23AM

Thanks for the help.
I updated (actually, I reinstalled!) Cygwin and added the path and pathext and after I got things working in Cygwin, the terminal in NetBeans seems to be working just fine now.

The help is much appreciated

Options: ReplyQuote


Sorry, only registered users may post in this forum.