PHP as Shell script...
| From: | Brian McGarvie | Date: | Thu, 20 Feb 2003 11:16:32 +0000 |
| Subject: | PHP as Shell script... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-136336@lists.php.net to get a copy of this message | ||
I am having trouble using php as a script.
#!/usr/local/bin/php
<?php
... stuff ...
?>
using the above form creates the following cron error:
/bin/sh: /usr/local/apache/sites/domain.com/tasks/autoreport/test.php: bad
interpreter: No such file or directory
Any ideas?
Thanks in advance...
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.445 / Virus Database: 250 - Release Date: 21/01/03