RE: [PHP] Can php works as a scheduler?

From: Date: Tue, 21 Jan 2003 06:57:06 +0000
Subject: RE: [PHP] Can php works as a scheduler?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-132358@lists.php.net to get a copy of this message
> I built a page which will import data from csv files to database, i want > this task to be done automatically at the midnight of each date. > > so does anyone know if there is any function work as similar as Scheduler > in > php? so php will run the script at specific time! You can do what you want, but the method is to use Scheduler to run a PHP script through php.exe or the php-cli.exe (command line interface) file. So, the program you'd type in for Scheduler to run would be something like: C:\php\php.exe -q c:\path\to\php\file.php -q will suppress the headers. Your file.php should not output anything, as it'll be a machine running it and no one can see the output anyhow. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/

« previous php.general (#132358) next »