NYCPHP Meetup

NYPHP.org

[nycphp-talk] PHP FTP function...

mikesz at qualityadvantages.com mikesz at qualityadvantages.com
Mon Dec 8 23:10:12 EST 2008


Hello and Greetings, NYPHP,

   I have a potential project that requires the ability to do file
   transfers from one website to another using FTP, i.e. the files and
   folders are on an ftp server and need to be downloaded to a folder
   /directory that is running on the server making the request.

   Is this a possibility using PHP? Has anyone done it successfully?

   I am looking at the possibilities of using :


   $url = "http://test.com/index.html"; fopen($url, "r");

   and/or
   
   $f = fopen("ftp://test.com");
   ftp_pasv($f, true);

Pointers very much apprecated. TIA.

-- 
Best regards,
 mikesz                          mailto:mikesz at qualityadvantages.com




More information about the talk mailing list