Hi,
sounds as if you haven't understood what PHP is and how it is used.
PHP is a web-server or shell extension. It allows you to define
procedures, to be called by the web-server, which can interact with
the underlying operating system.
PHP supports several web-server API's, see
http://php.net/manual/en/function.php-sapi-name.php . The most popular
SAPI are apache, cgi-fcgi, thttpd.
For running shell scripts directly on the operating system, PHP
supports a special SAPI: cli. For example a program /bin/shutdown
which looks like this:
#!/usr/bin/php
<?php
/sbin/shutdown -h now
?>
Can shutdown your operating system immediately.
> java -classpath JavaBridge.war TestInstallation
> java.lang.runtimeexecution:could not run php.............
> Please check if php-cgi is in the path.....
>
> I don't know the causes of this.
JavaBridge.war is a Java Web-Server application. It needs the cgi-fcgi SAPI.
The SAPI is distributed with PHP.
Regards,
Jost Bökemeier
|