ok, I have a php file name hourly.php. It calculates results for me. In order to execute it, I input three values, the start time, end time and time window such as start time: 20040430040000
end time: 2004043004000
by using cmd (command prompt) i execute this line:
php hourly.php 20040430040000 2004043004000 hourly
then this calculates the results to my stats database.
what i need help is to be able to write a php code to have my schedule task to run php file to execute this every hour but the date and time changes so I don't know what is the best way to do it or even how. With that, i don't need to input manually to the cmd to input these three parameter every hour. I like to be able to schedule task that particular php file to run that every hour for me incrementing hourly.I hope this is enough.
any help is greatly apprecieated.