Read XML File

Discussion in 'PHP' started by inderpal, Aug 21, 2006.

  1. #1
    Hi All,

    Is there any way I can read a XML file directly from FTP py providing FTP server address, username and password?

    I would appreciate any help in this regard. Thanks in advance!

    Best Regards,
    Inderpal Singh
     
    inderpal, Aug 21, 2006 IP
  2. Litewebsite

    Litewebsite Guest

    Messages:
    26
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The cURL extension has FTP support. I think that could help you.
     
    Litewebsite, Aug 21, 2006 IP
  3. falcondriver

    falcondriver Well-Known Member

    Messages:
    963
    Likes Received:
    47
    Best Answers:
    0
    Trophy Points:
    145
    #3
    falcondriver, Aug 21, 2006 IP
  4. inderpal

    inderpal Active Member

    Messages:
    919
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    68
    #4
    Hi,

    Thanks for your help. So, isn't there any way to read the XML file directly from FTP? I know I can download the XML source file to the server and can parse it but I am looking for something where I can directly read XML from FTP.

    Best Regards,
    Inderpal Singh
     
    inderpal, Aug 21, 2006 IP
  5. Gordaen

    Gordaen Peon

    Messages:
    277
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #5
    If you mean the file is on some other server and you want your server's script to be able to grab the contents of that file, cURL (as Litewebsite mentioned) is your best bet. cURL supports the file transfer protocol (as well as plenty of others).
     
    Gordaen, Aug 22, 2006 IP