Jump to content

Archived

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

arifsor

downloading a file

Recommended Posts

hi
i want to write a script that can download a zip from another website.

suppose i want to download a file from [a href=\"http://www.otherwebsite.com/abc.zip\" target=\"_blank\"]http://www.otherwebsite.com/abc.zip[/a]

to my website [a href=\"http://www.mywebsite.com/abc.zip\" target=\"_blank\"]http://www.mywebsite.com/abc.zip[/a]


can move_uploade function do this?

Regard
Arif Sorathia

Share this post


Link to post
Share on other sites
No. move_uploaded_file() is a local function only. Can you imagine the security risk if I could pluck random files off of your website and move them to mine??

Share this post


Link to post
Share on other sites
yeah you are right
but is this possible on ftp , i have the user id and password of the ftp server

Share this post


Link to post
Share on other sites
Yes, but you don't use move_uploaded_file() with the FTP functions. Look up FTP on php.net

Share this post


Link to post
Share on other sites
Basically i am creating a real estate website which will display the mls listing , my client purchased the membership form a mls listing provider. they store the data file at there ftp server. i need the script which can get the zip file for the mls provider ftp server.

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.