NYCPHP Meetup

NYPHP.org

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

Kenneth Downs ken at secdat.com
Thu Jun 23 10:48:28 EDT 2005


PMFJI, but I myself had no end of troubles with exec() and ended up using
backtick, something like:

$command = 'php batch_program.php';
`$command`;

For some reason exec() just never worked, and backtick did, so I did not
investigate further.

> 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.
> _______________________________________________
> New York PHP Talk Mailing List
> AMP Technology
> Supporting Apache, MySQL and PHP
> http://lists.nyphp.org/mailman/listinfo/talk
> http://www.nyphp.org
>


-- 
Kenneth Downs
Secure Data Software
631-379-0010
ken at secdat.com
PO Box 708
East Setauket, NY 11733




More information about the talk mailing list