You are here: Re: Running a PHP script everyday « PHP « IT news, forums, messages
Re: Running a PHP script everyday

Posted by Raj Shekhar on 08/01/05 01:43

<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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация