Php – Running scheduled web scripts in a Windows Server environment

iisPHPscheduled-taskwindows-server-2008

I'm trying to get a scheduled web script running on a Windows Server and so far the only way I've managed to automate this process is by using the Task Scheduler to open Internet Explorer with the web address as a parameter. I then need to create a separate task to run just after this task to close Internet Explorer (otherwise the task doesn't complete).

Is there a better way of doing this?

I've also managed to run the script by calling the web address through a Telnet connection to the web server (GET /web/address/here) but I haven't found a way of automating this process on a scheduled basis.

Any ideas appreciated

Best Answer

Your post as I see is essentially a duplicate of this one:

https://stackoverflow.com/questions/3947142/open-url-from-script-on-windows-server-2008

There he got quite a few answers right up your alley (most notably some PowerShell scripts).