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 Quote Link to comment 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?? Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.