Re: exec() problems - addedum

From: Date: Thu, 14 Sep 2000 14:59:56 +0000
Subject: Re: exec() problems - addedum
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-16788@lists.php.net to get a copy of this message
Willem Bison wrote: > > I forgot to mention this: > i'm running php4.0.1pl2, zend optimizer, rh6.2 > > I'm having trouble getting the output of a program using exec(). > Instead of the expected output (and the output I get using the exact same > commandline in the shell) I get no ouput at all and a return value of 11 > (the third parameter of the exec() function). try this: echo /usr/local/bin/blahshellcommand; You must use backticks " ` " and not single quotes " ' " for this to work. -- Marko.

« previous php.general (#16788) next »