note 97159 deleted from function.passthru by thiago

From: Date: Mon, 05 Apr 2010 14:24:41 +0000
Subject: note 97159 deleted from function.passthru by thiago
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-167712@lists.php.net to get a copy of this message
Note Submitter: ignacio paz posse ---- I used passthru as a workaround to avoid a fatal error of memory exhaustion with a script that could not to be inserted with include (nor require). I grabbed the output of the php script via passthru and could fix what seemed to be a complex case to debug. I thought of mentioning it here as I didn't see any example using a php command. $grab_output = passthru("php tree.php --section ".$section, $notOk); if($notOk==0){ echo '<div>',$grab_output, '</div>'; } I refer to this at http://ignaciopp.wordpress.com, the address shorten to be included in this post is http://tiny.cc/1qchh

« previous php.notes (#167712) next »