Hi, I have a script, first using the php ftp function to download a xml file, and then, parse that xml file, all in one script.

The problem is the file I downloaded is only half of the file, not the full xml file. so when the parsing script running, it always gives the xml parse error.

I don't think it is the time limit issue, first it was not reaching the time limits, and second, the script is still trying to parse the xml, meaning the script is not timing out.

But why the ftp download file, only partial of the file is downloaded?

Thanks!

    Is error_reporting set to E_ALL and either display_errors or log_errors set to On? If so, are you getting any PHP error messages?

    Can you show us the code you're using to retrieve the file over FTP?

      Write a Reply...