Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Downloading and saveing in php

Status
Not open for further replies.

solex

Programmer
Joined
Feb 28, 2003
Messages
91
Location
GB
hi,

i want to add in to my script a bit of code that will download a file from a url on a server, and resave to my new location with a new name.

the old and new local will not change so no interface will be needed.

Got any ideas?

thanx in advance

SOLEX

 
any help, please :(
 
in the manuel it says

ftp_get ( resource ftp_stream, string local_file, string remote_file, int mode [, int resumepos])

but i dont get the ftp_stream bit, any help?

solex
 
is there any way of not useing ftp to do this pls?

solex
 
solex:

You may have to use FTP -- It depends on the protocol the foreign server uses to hand out documents.

You haven't specified the protocol you need to fetch the file -- only that you have to get a file from a URL.

Want the best answers? Ask the best questions: TANSTAAFL!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top