Re: crontab and php

From: Date: Wed, 16 Apr 2003 05:26:36 +0000
Subject: Re: crontab and php
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-144066@lists.php.net to get a copy of this message
First off you must be certain that you have the CLI or CGI version of PHP installed on the server before you will be able to do this. Then you must add a line something like this as the first line of your script. #!/path/to/php/cgi/php -q the -q part tells it to be quiet ( i think ) might be wrong about that, but i know it should be there. Then after you do this, it should work just like a bash shell script. Jim ----- Original Message ----- From: "Prince" <friendly@kaltelnet.net> To: "PHP mailing list" <php-general@lists.php.net> Sent: Tuesday, April 15, 2003 9:21 PM Subject: [PHP] crontab and php > hi... > > i have a script called maint.php it is written just like any normal php > script: > > <?php > //php code here > > ?> > if i tell crontab to run: php maint.php at 12am every day will it work the > way it supposed to or will it not work very well? if there are any mods to > the file what should they be? > if you need the real contents of the file i can put it here... > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#144066) next »