Re: Program executing in PHP. Please help

From: Date: Wed, 03 Jul 2002 20:48:13 +0000
Subject: Re: Program executing in PHP. Please help
Groups: php.general 
Request: Send a blank email to php-general+get-105301@lists.php.net to get a copy of this message
><? >$output = shell_exec("uudeview -i /bla/bla.txt -p /bla/bla/"); >echo "<pre>"; >echo $kick_my_ass; >echo "</pre>"; >?> > And I get nothing :(. Script like below: Well, no... Your data is in $output, and you are echo-ing out $kick_my_ass... Try echo $output ><? >$output = shell_exec("uudeview"); >echo "<pre>"; >echo $kick_my_ass; >echo "</pre>"; >?> > Work fine outputting me command line parameters. > > What have I done wrong? It's also possible that you just made a typo here, but the real code has the right variables... In that case, try this: $command = "uudeview -i /bal/bal.txt -p /bla/la"; exec($command, $results, $errorcode); echo implode("<BR>\n", $results); if ($errorcode){ echo "OS Error: $errorcode. Use 'man errno' to look it up, but it's probably path/permissions.<BR>\n"); } -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#105301) next »