note 97159 added to function.passthru
| From: | ignaciopazposse at osu1 dot php dot net | Date: | Mon, 05 Apr 2010 14:18:29 +0000 |
| Subject: | note 97159 added to function.passthru | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-167711@lists.php.net to get a copy of this message | ||
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
----
Server IP: 201.216.232.3
Probable Submitter: 190.113.137.38
----
Manual Page -- http://www.php.net/manual/en/function.passthru.php
Edit -- https://master.php.net/note/edit/97159
Del: integrated -- https://master.php.net/note/delete/97159/integrated
Del: useless -- https://master.php.net/note/delete/97159/useless
Del: bad code -- https://master.php.net/note/delete/97159/bad+code
Del: spam -- https://master.php.net/note/delete/97159/spam
Del: non-english -- https://master.php.net/note/delete/97159/non-english
Del: in docs -- https://master.php.net/note/delete/97159/in+docs
Del: other reasons-- https://master.php.net/note/delete/97159
Reject -- https://master.php.net/note/reject/97159
Search -- https://master.php.net/manage/user-notes.php