Jump to content


Photo

downloading a file


  • Please log in to reply
4 replies to this topic

#1 arifsor

arifsor
  • Members
  • PipPipPip
  • Advanced Member
  • 50 posts
  • LocationPakistan

Posted 19 April 2006 - 06:58 PM

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
---------------------------
Power Demand Respect
Arif Sorathia

#2 ober

ober
  • Staff Alumni
  • Advanced Member
  • 5,337 posts
  • LocationEast Coast, USA

Posted 19 April 2006 - 07:04 PM

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??

Info: PHP Manual


#3 arifsor

arifsor
  • Members
  • PipPipPip
  • Advanced Member
  • 50 posts
  • LocationPakistan

Posted 19 April 2006 - 07:37 PM

yeah you are right
but is this possible on ftp , i have the user id and password of the ftp server


---------------------------
Power Demand Respect
Arif Sorathia

#4 ober

ober
  • Staff Alumni
  • Advanced Member
  • 5,337 posts
  • LocationEast Coast, USA

Posted 19 April 2006 - 07:40 PM

Yes, but you don't use move_uploaded_file() with the FTP functions. Look up FTP on php.net

Info: PHP Manual


#5 arifsor

arifsor
  • Members
  • PipPipPip
  • Advanced Member
  • 50 posts
  • LocationPakistan

Posted 19 April 2006 - 07:42 PM

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.
---------------------------
Power Demand Respect
Arif Sorathia




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users