I have the following php code which I found here:
function download_xml() { $url = \'http://tv.sygko.net/tv.xml\'; $ch = curl_init($url); $timeo
Your timeout is set to 5 seconds which might be too short depending on the file size of the document. Try increasing it to 10-15 just to make sure it has enough time to complete the transfer.