Re: Running a PHP script everyday
| From: | Raj Shekhar | Date: | Sun, 31 Jul 2005 22:43:36 +0000 |
| Subject: | Re: Running a PHP script everyday | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-219723@lists.php.net to get a copy of this message | ||
<sub@pudlz.com> writes:
> My host uses cPanel. When I setup the crontab it e-mails me back this
> response:
>
> /bin/sh: public_html/wap/mailer/dailylist.php: /usr/bin/php
> : bad interpreter: No such file or directory
>
> I'm assuming that it means it can't find "/user/bin/php"
>
> I ran a "whereis php" through a cronjob and got this:
Try "which php" instead.
Another option would be to put the php script in the decomentroot of
your server. Schedule a cron job on any of your desktop/dev machines
to wget that php script.
--
Raj Shekhar
blog : http://rajshekhar.net/blog home : http://rajshekhar.net
Disclaimer : http://rajshekhar.net/disclaimer