Re: PHP as a cron job

From: Date: Thu, 17 Jan 2002 10:38:19 +0000
Subject: Re: PHP as a cron job
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-80893@lists.php.net to get a copy of this message
This is exactly what the documentation says. I have tried this (and also others) configuration. In any scenario the error message is the same. > I am not clear on what you are trying do. > However, let me tell you how we are running PHP > scripts as cron jobs. > > We have setup cron to execute a shell script. > The shell script invokes > > {path-to-php-binary}/php -q my_script.php > > That works fine. > > Hope that helps. > > > > --- mike cullerton <php-l@bakednotfried.com> wrote: > > on 1/16/02 11:26 AM, Tiago Luchini at > > luchini@galluch.com.br wrote: > > > > >>>>>> Unable to open /home/admin/webmin-0.85/ in > > Unknown on line 0 > > >>>> > > >>>> this is possibly a path or env issue. have you > > tried using absolute > > >>>> filenames? > > >>>> > > >>> > > >>> Yes. Same thing happens with absolute or > > relative paths. > > >> > > >> what's the line in your code where this error > > occurs? > > > > > > it doesn't run any line at all. don't matter what > > I put on my code, it just > > > says "unable to open...." > > > > > > > > > > what's the first line of the file being called by > > cron? is it > > > > #!/usr/local/bin/php -q > > > > > > > > -- mike cullerton michaelc at cullerton dot com > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: > > php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: > > php-general-help@lists.php.net > > To contact the list administrators, e-mail: > > php-list-admin@lists.php.net > > > > > ===== > Anas Mughal > anasmughal@yahoo.com > anasmughal@hotmail.com > Tel: 973-249-6665 > > __________________________________________________ > Do You Yahoo!? > Send FREE video emails in Yahoo! Mail! > http://promo.yahoo.com/videomail/ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#80893) next »