Re: Weird behavior of exec()
| From: | Leonardo | Date: | Fri, 16 Jul 2010 15:45:00 +0000 |
| Subject: | Re: Weird behavior of exec() | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-306949@lists.php.net to get a copy of this message | ||
Em 16/07/2010 12:18, Jim Lucas escreveu:
I tried running the same script, and found that the php binary is not in my path. run this echo passthru('which php'); Also, modify your existing exec() command to the following and it will capture errors too. exec('php b.php> output.txt 2>&1&'); After running this is when I noticed it say "sh: php: not found"You're right about the path role in the issue. My code is working now, and the solution is described in my reply to Bob's post. Thank you.