JS timeout ...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

jmueller0823
Forum Commoner
Posts: 37
Joined: Tue Apr 20, 2004 9:06 pm

Post by jmueller0823 »

hmmm. yea.

Is there a Plan B?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

I already gave you different directions you could go..
jmueller0823
Forum Commoner
Posts: 37
Joined: Tue Apr 20, 2004 9:06 pm

Post by jmueller0823 »

feyd, yes I know.

I need a little hand holding, some code examples.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

well.. there's curl and file_get_contents() which can both retrieve remote files. Once you have the file, you can save it to your local server.

I would use a cron, or fork a script on the first request of the hour, to fetch the remote file. Once loaded (if successful) you can simply overwrite the local file. At any rate, you will have a fairly recent copy of their file on hand.
jmueller0823
Forum Commoner
Posts: 37
Joined: Tue Apr 20, 2004 9:06 pm

Post by jmueller0823 »

feyd, thanks.
Okay, I'll do some looking around for a 'Curl' solution...

Do you think there's something 'canned' out there? I don't need to re-invent the wheel, do I?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

do it yourself.. learn something...
Post Reply