[PHP] process php script at regular intervals
I want to have a php script processed on a daily (eg 9am) interval. is there some way to automate this from within the script or do i need to schedule this with an external app? has anyone had any experience with this previously? thanks Daniel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] process php script at regular intervals
it needs to be scheduled. - on *nix, a cron job will do it - on mac, a program like iDo Script Scheduler (combined with a simple applwscript) will do it - on windows, i believe there are tools to do this, but not sure what they are alternatively, i set up a HTML page as my 'start' page on IE, which acts as a portal, running a few scripts... since i open my browser about 360 days a year, it's pretty reliable, and i've got a failsafe in there to make sure the scripts are only run once per day. justin french on 03/06/02 4:49 PM, daniel cozzolino ([EMAIL PROTECTED]) wrote: I want to have a php script processed on a daily (eg 9am) interval. is there some way to automate this from within the script or do i need to schedule this with an external app? has anyone had any experience with this previously? thanks Daniel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] process php script at regular intervals
One way of doing this is to set up a cronjob that has Lynx call the script. There is a flag that is usually added as well ... I'm not sure right now but it could be '-dump': lynx -dump http://your/script/url.php This has been covered a few times in the archive if you want to check the details there. This assumes that you are on a Linux/UNIX server, and that PHP is an Apache module, not a standalone CGI installation (where you could call the script directly without using Lynx). Michael Hall On Mon, 3 Jun 2002, daniel cozzolino wrote: I want to have a php script processed on a daily (eg 9am) interval. is there some way to automate this from within the script or do i need to schedule this with an external app? has anyone had any experience with this previously? thanks Daniel -- n i n t i . c o m php-python-perl-mysql-postgresql Michael Hall [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php