Php – Win Server 2008 Task Scheduler to run PHP file

PHPschedulertaskwindows-server-2008

I am trying to figure out how to open and close IE to run a PHP page on
a daily run.Not sure what to do once I get to the "Start a Program" section
of the task wizard to achieve this.

Best Answer

You need to invoke php with your script as an argument:

"C:\Program Files\PHP\php.exe" -f "C:\Path\to\your\script.php"

The -f switch is from the linux version, but I believe it's the same for Windows; you'll also need to specify the correct path to php.exe, wherever that is.

Related Topic