note 74704 added to function.exec
| From: | pawel_do_not at spam_me_lenart dot pl | Date: | Tue, 24 Apr 2007 11:49:00 +0000 |
| Subject: | note 74704 added to function.exec | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-125827@lists.php.net to get a copy of this message | ||
You must remember that if you're running your own compiled C programs and you don't get
any output you probably do it like this:
printf("some text");
shell_exec won't display it, you must do your output as follows:
fprintf(stdout, "some text");
and then shell_exec will correctly read stdout (spent an hour wondering why my program isn't
working when connected with PHP :)
----
Server IP: 195.136.184.34
Probable Submitter: 83.30.61.169
----
Manual Page -- http://www.php.net/manual/en/function.exec.php
Edit -- https://master.php.net/note/edit/74704
Del: integrated -- https://master.php.net/note/delete/74704/integrated
Del: useless -- https://master.php.net/note/delete/74704/useless
Del: bad code -- https://master.php.net/note/delete/74704/bad+code
Del: spam -- https://master.php.net/note/delete/74704/spam
Del: non-english -- https://master.php.net/note/delete/74704/non-english
Del: in docs -- https://master.php.net/note/delete/74704/in+docs
Del: other reasons-- https://master.php.net/note/delete/74704
Reject -- https://master.php.net/note/reject/74704
Search -- https://master.php.net/manage/user-notes.php