How do I run php scripts in windows every 10 minutes?

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
Deseree
Forum Commoner
Posts: 84
Joined: Mon Feb 13, 2006 11:35 pm

How do I run php scripts in windows every 10 minutes?

Post by Deseree »

Hi...

well, i've tried my way and it didn't work well, apache kept crashing after no time.

I was running xampp on my windows xp sp2 pro system, and calling it every 10 minutes by manually refreshing my browser, and apache crashes and/or uses 99% cpu for some reason..

I tried to use ezcron but that didnt work either, it would only run the first time and never run again.

How can I have a php script executed every 10 minutes or so on my desktop?

Is there a way to run it from the cmd line in WINDOWS XP PRO or is that not possible like it is in linux?
Roja
Tutorials Group
Posts: 2692
Joined: Sun Jan 04, 2004 10:30 pm

Post by Roja »

ICron - an implementation of Cron as a Windows service.

I use it, and highly recommend it.
Deseree
Forum Commoner
Posts: 84
Joined: Mon Feb 13, 2006 11:35 pm

Post by Deseree »

ok thanks for that, how about getting it so i'm not using apache to run my php scripts on windows, and instead i run them at the command line in WINDOWS XP PRO ?

Is that possible?

like in linux on my server, i could type php -q /pathtoscript/script.php and it would excute WITHOUT using apache. can i do that in windows? It's not working .... lol...
ryos
Forum Newbie
Posts: 16
Joined: Tue Feb 14, 2006 4:55 pm

Post by ryos »

It is. I don't have a Windows machine so I don't know how to set it up, but this page from the manual seems to document it pretty well.
Deseree
Forum Commoner
Posts: 84
Joined: Mon Feb 13, 2006 11:35 pm

Post by Deseree »

I still can't get anything working on windows..... anybody have experience with this at least TESTING or something, I know everyone love linux but common.... heh....
Post Reply