How do you do that... I got completely no clue!
On *nix systems it would be either crontab. Not sure about Windows systems I'm afraid, although I know there is something. Maybe someone else can fill in the gap?
is there any pure PHP way to do so? like set a PHP file which never ends and get the current time, if the current time matches, it start the script? but maybe not because I think there are a max execultion time for a PHP script
You could do that, but I wouldn't suggest it. crontab is made for the job and does it very well. If absolutely have to do it in PHP then check out [man]site_time_limit[/man], [man]sleep[/man], [man]time[/man], [man]date[/man]
you could make a DAILY contest: ... anyone that comes my page xxxxx.php between 14.00-15.00 GMT each day, will have chance to win our Website T-shirt
so, of course, in that page, you include your script you want to have run every day 😉 😉
.
in a windows sysem i believe you can use scheduled task and set it to a certain time of day and how many times you want it to execute in a week. This is just to get the script to execute then you would have to write the code for it to stop and everything else.