SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Jun 2010
    0 Post(s)
    0 Thread(s)

    get ftp file without saving a file

    I am having difficulty solving a problem. I have an FTP site with 5000 files on it and I can easily get the file listing and evaluate the file names to determine which files to actually download. The files are very small, all less than 1k. I want to read the contents and move on to the next file. I do not know how to get a file from an ftp server read it and move on without saving the file to disk.

    I could use a bit of direction...

    Thank you

  2. #2
    Keeper of the SFL StarLion's Avatar
    Join Date
    Feb 2006
    Atlanta, GA, USA
    73 Post(s)
    0 Thread(s)
    if your server allows file wrappers to access urls...

    file_get_contents the file using an FTP URL? Never actually tried it myself, but i dont see why it shouldnt work...


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts