Jump to content

Archived

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

education

Any Ideas

Recommended Posts

Hi guys, wondering if you can help.
I have a site that currently uses resources obtained from an FTP site.
the url on the page links direclty to this ftp site such as

an image of a cloud might be obtained from ftp://someaddress.com/clouds.

Now this takes up the ftp servers bandwith whenever someone access MY page.

What i want to do is say every hour get my server to gather the information from the ftp site just a few pictures say and store them on my server where i can link to them there.

i am totally new to php ish and am not sure how to do this, i have to as the ftp servers bandwidth has been cut and it will be catastrophic if my site losses these certain resources.

Thanks for your help.

Share this post


Link to post
Share on other sites
You could use the copy() function as the basis of your script, then run it periodically with a cron job.

Share this post


Link to post
Share on other sites

×

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.