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
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...
Link to comment
Share on other sites

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
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.