--- Jack <[EMAIL PROTECTED]> wrote: > i want to set a schedule for php to run certain > script at specify time, to what i understood in > php is : the script can only be process when a > homepage had been execute. but i want the script > to be excute even no one open a homepage contain > php script in it! > > is there anyway i can do that?
Sure, though it varies depending on your platform. Assuming you are on Unix, it is likely that you already have a CLI (command line interface) PHP installed somewhere. You can use this to create a PHP script that can be executed like any other shell script. Just put something like this at the top: #! /usr/bin/php -q Be sure it points to the location of your PHP parser (/usr/bin/php in this example). To automate scripts, look into cron: man cron man crontab Good luck. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php