note 4315 deleted from exec by ronabop

From: Date: Fri, 11 Aug 2000 09:18:45 +0000
Subject: note 4315 deleted from exec by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-1066@lists.php.net to get a copy of this message
with the upgrade to php 3.0.15 the exec/passthru functions doesn't return <string>. Example: <PRE> &lt;? $pwd = exec("pwd"); echo $pwd; ?> </PRE> will print nothing, so $pwd is empty. However, when I use system() instead of exec() there is an output from the system()-function itself, but $pwd is also empty this time. The output from the system()-function proves that the command was succsessfuly executed, but the value wasn't submitet to $pwd. Has anybody else got this misbehavior? Does anybody have a quick fix for this?

« previous php.notes (#1066) next »