Jump to content

Is There a Way....???


BrotherLogic

Recommended Posts

PROBLEM:

I am currently writing a PHP program that rips data from a popular site. I am then uploading this data into a MySQL database on my server. The problem is that there is about 200 - 250 page reloads (on this sites server) when the script is activated. I think they are cutting me off at about 25 - 30 page reloads. Needless to say I'm only getting a fraction of the information I need at one time. I have talked to the company and they do not mind me ripping the data as long as it does not backup their servers (completely understandable).

SOLUTION:

The solution I have come up with is to break the script into 20 - 30 different scripts that rip the data at different times throughout the day. This way there is only 10 page reloads per activivation of the script. Since there is no possible way to activate the script manually 30 times throughout the day to get all of the necessary data. This brings me to my question:

QUESTION/FIX:

Can a .php script be activated automatically at a precise time that is set on a given day? (i.e. www.yourname.com/update.php will be loaded at 6:30 PM EST, on MON, WED, and FRI)?
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.