RE: [PHP] Calling PHP shell scripts with exec from within PHP goesawry?
| From: | Jay Blanchard | Date: | Tue, 23 Sep 2003 12:07:15 +0000 |
| Subject: | RE: [PHP] Calling PHP shell scripts with exec from within PHP goesawry? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-163578@lists.php.net to get a copy of this message | ||
[snip]
I've never had a problem with not putting an extra blank line between
binary path and the actual script. Actually I would say that would break
the output since an extra line would be printed in the case of a PHP
script.
[/snip]
Very true Robert, it can break the output. I generally avoid this by
invoking php the long way.
Examples;
(cron)
* * * * * /usr/local/bin/php -q /the/path/to/the/script.php > /dev/null
(exec)
$strExecScript = "/usr/local/bin/php -q /the/path/to/the/script.php";
exec($strExecScript);
Habits! What would we do without them?