NYCPHP Meetup

NYPHP.org

[nycphp-talk] What does PHP use to find programs that are exec'ed?

Francisco Reyes lists at natserv.com
Thu Jun 23 10:42:49 EDT 2005


On Thu, 23 Jun 2005, Jayesh Sheth wrote:

> <?php
> $output = '';
> $exec = '';
> exec('/usr/bin/php5_0 --help', $output, $exec);
> if ($exec)
> {
> 	echo 'Yes';
> }
> else
> {
> 	echo 'No';

Have you tried running something else?
Trying to run PHP from within PHP may be a problem in and of itself.. At 
least something to consider.



More information about the talk mailing list