Page 1 of 1

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

Posted: Thu Feb 23, 2006 6:05 pm
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?

Posted: Thu Feb 23, 2006 6:33 pm
by Roja
ICron - an implementation of Cron as a Windows service.

I use it, and highly recommend it.

Posted: Thu Feb 23, 2006 8:11 pm
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...

Posted: Fri Feb 24, 2006 2:03 am
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.

Posted: Sat Feb 25, 2006 7:30 am
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....