Run a PHP file in microsoft scheduled tasks

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
guitarlvr
Forum Contributor
Posts: 245
Joined: Wed Mar 21, 2007 10:35 pm

Run a PHP file in microsoft scheduled tasks

Post by guitarlvr »

I need to run a php file in microsoft scheduled tasks. I tried creating a new task and pointing to the file but at the time it was supposed to run, instead of running the file, it opened it in notepad. Anyone know how i can get it to run?

Thanks,

Wayne
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post by Benjamin »

That's just funny. :lol:
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

You need to specificy the php interpreter for it to be... intepreted.

Code: Select all

C:\PHP\php.exe "C:\path\to\file.php"
Post Reply