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
should be no prolem to login to an ftp server and download the file for further use. here are some docs and examples: http://www.php.net/manual/en/ref.ftp.php
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
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).