arifsor Posted April 19, 2006 Share Posted April 19, 2006 hii 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 Link to comment https://forums.phpfreaks.com/topic/7875-downloading-a-file/ Share on other sites More sharing options...
ober Posted April 19, 2006 Share Posted April 19, 2006 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?? Link to comment https://forums.phpfreaks.com/topic/7875-downloading-a-file/#findComment-28707 Share on other sites More sharing options...
arifsor Posted April 19, 2006 Author Share Posted April 19, 2006 yeah you are rightbut is this possible on ftp , i have the user id and password of the ftp server Link to comment https://forums.phpfreaks.com/topic/7875-downloading-a-file/#findComment-28722 Share on other sites More sharing options...
ober Posted April 19, 2006 Share Posted April 19, 2006 Yes, but you don't use move_uploaded_file() with the FTP functions. Look up FTP on php.net Link to comment https://forums.phpfreaks.com/topic/7875-downloading-a-file/#findComment-28725 Share on other sites More sharing options...
arifsor Posted April 19, 2006 Author Share Posted April 19, 2006 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. Link to comment https://forums.phpfreaks.com/topic/7875-downloading-a-file/#findComment-28727 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.