note 57754 added to function.passthru
| From: | vijayramanan at rediffmail dot com | Date: | Thu, 13 Oct 2005 10:09:58 +0000 |
| Subject: | note 57754 added to function.passthru | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-96942@lists.php.net to get a copy of this message | ||
I had an issue when i used exec
I think we were echoing information on the test.php script.
for eg: when we tried
exec(php test.php,$array,$error);
the return was 127 and the code was failing.
checking the note on this page gave us a hint to use passthru instead.
The only thing to note is that you need to provide the fuull path.
now our command became
passthru(/bin/php /pathtotest/test.php,$array,$error);
this works.
yipeee!!!!!
----
Manual Page -- http://www.php.net/manual/en/function.passthru.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+57754
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+57754&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+57754&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+57754&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+57754&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+57754&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+57754&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+57754&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+57754&report=yes
Search -- http://master.php.net/manage/user-notes.php