Jump to content

Saving info certain times every day


XeroXer

Recommended Posts

Is it possible somehow to create a php script that runs on certain times every day.
I am planning on making a script that reads stats from two sites for later comparresing.
Reads the data and stores it in either my database or a textfile.
I want it to read and save the data three times a day and automaticly.

Anyone got any tips on how to do this?
Link to comment
https://forums.phpfreaks.com/topic/26752-saving-info-certain-times-every-day/
Share on other sites

Can I see that in the phpinfo or do I have to ask them?
And if they do not allow it I can't do it?

Anyone know any free hosting site who allows it?
I don't wanna print the info out anywhere I just want it stored in a textfile for further use by me...
One way is to put a check in each of your scripts or probably the home page by putting some checks on the current system time and whether the thing has been logged. This approach is used by the software available at http://www.dwalker.co.uk/phpjobscheduler/

But the time at which the data will be logged will be different every day as it will depend on when a page is requested on the website and hence this method will not work for sites which have only a few hits a day

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.