note 74705 added to ref.exec
| From: | pawel_do_not at spam_me_lenart dot pl | Date: | Tue, 24 Apr 2007 11:51:31 +0000 |
| Subject: | note 74705 added to ref.exec | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-125828@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 and similiar functions won't display it, you must do your output as follows:
fprintf(stdout, "some text");
and then shell_exec and so 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/ref.exec.php
Edit -- https://master.php.net/note/edit/74705
Del: integrated -- https://master.php.net/note/delete/74705/integrated
Del: useless -- https://master.php.net/note/delete/74705/useless
Del: bad code -- https://master.php.net/note/delete/74705/bad+code
Del: spam -- https://master.php.net/note/delete/74705/spam
Del: non-english -- https://master.php.net/note/delete/74705/non-english
Del: in docs -- https://master.php.net/note/delete/74705/in+docs
Del: other reasons-- https://master.php.net/note/delete/74705
Reject -- https://master.php.net/note/reject/74705
Search -- https://master.php.net/manage/user-notes.php