SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Jun 2010
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    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
    Location
    Atlanta, GA, USA
    Posts
    3,748
    Mentioned
    73 Post(s)
    Tagged
    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...


Bookmarks

Posting Permissions

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