Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"@php_bin@" is not recognized as an internal or external command,operable program or batch file

I using PHPUnit and Selenium Server to testing Yii Application, i m using xp operating system. and i install PHPUnit_Selenium (1.0.1) and other software.actually i follow this bellow instruction to install http://www.yiiframework.com/forum/index.php?/topic/14995-wamp-netbeans-phpunit-selenium-yii/

and i also download the selenium-server-standalone-2.20.0.jar file and through command prompted i started server using java -jar selenium-server-standalone-2.0b3.jar command..

and after that i opened new command prompt and i tried to test my simple hello world yii application. and i invoked this command phpunit functional/SiteTest.php and ya i also set the Test_Base_URL in webtestcase ..

but after invoking above command for test.. some process going on and 2 or 3 times firefox opened and closed automatically and at the end i got this error "@php_bin@" is not recognized as an internal or external command,operable program or batch file

even i attached screen shots of both cmd prompt ... http://s14.postimage.org/o057x7wox/1cmd.jpg

like image 408
Jaydipsinh Avatar asked Mar 07 '12 07:03

Jaydipsinh


People also ask

How do you fix is not recognized as an internal or external command operable program or batch file error?

Here are the three easiest ways to fix Java's “not recognized as an internal or external command” error: Install or reinstall Java and the JDK on your computer. Add Java's bin directory to the computer's PATH. Restart the command prompt, terminal window or PowerShell.

Is not recognized as an internal or external command operable program or batch file?

You can resolve this issue in three ways: First, use the full path of the executable file to launch the program. Second, add the program path to Windows environment variables. Finally, move the files to the System32 folder.


1 Answers

You should replace @php_bin@ by the path to the php binary. I guess PEAR or PHPUnit installer was supposed to do that.

like image 128
jpic Avatar answered Sep 22 '22 23:09

jpic