How can I run a .php file every x minutes/hours/days/years/whatever?
I have windows XP OS (and so does my host) so if I remember correctly I won't be able to use 'cron'.
I thought of using header("refresh:120; url=myscript.php"); to check if x time has passed since the last script's execution, and if true then run it again. I could then leave my pc on the page(which would probably be something like /hiddenpage.php).
I could do the same without leaving my pc on 24/7, instead I could do the check every time an user loads a page, but that's an unsure method.
Or, set a timer on the web page(s) with a countdown until the next execution of script (using javascript/whatever) and then reload the page (or directly run the script), though I'd have to use my pc for this.
So, any tips?