note 50540 added to function.passthru
| From: | puppy at cyberpuppy dot org | Date: | Wed, 02 Mar 2005 22:50:50 +0000 |
| Subject: | note 50540 added to function.passthru | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-85830@lists.php.net to get a copy of this message | ||
Regarding swbrown's comment...you need to use an output buffer if you don't want the data
displayed.
For example:
ob_start();
passthru("<i>command</i>");
$var = ob_get_contents();
ob_end_clean(); //Use this instead of ob_flush()
This gets all the output from the command, and exits without sending any data to stdout.
----
Manual Page -- http://www.php.net/manual/en/function.passthru.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+50540
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50540&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50540&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50540&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50540&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50540&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+50540&report=yes
Search -- http://master.php.net/manage/user-notes.php