> 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/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to