note 74705 deleted from ref.exec by crell
| From: | crell@php.net | Date: | Thu, 31 Mar 2022 20:58:14 +0000 |
| Subject: | note 74705 deleted from ref.exec by crell | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-217995@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 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 :)