note 74704 deleted from function.exec by adi
| From: | adi@php.net | Date: | Tue, 24 Apr 2007 12:13:15 +0000 |
| Subject: | note 74704 deleted from function.exec by adi | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-125829@lists.php.net to get a copy of this message | ||
Note Submitter: pawel_do_not at spam_me_lenart dot pl
----
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 :)