|
|
|
|
|
|
![]() |
#15 |
If something goes wrong at the plant, blame the guy who can't speak English
Join Date: Sep 2006
Posts: 30
|
Well if God wont help you then I suppose praying to Satan is the next best thing. Problem is your host is not allowing easy file access via the File command but I bet they have CURL installed. So you can edit the code and instead of using a simple file("$xml_source") use:
if (!function_exists("curl_init")) { echo ("No PHP Curl installed"); exit; } //use curl to get a cache file $ch = curl_init("$xml_source"); $fp = fopen("pcache.txt", "w"); curl_setopt($ch, CURLOPT_FILE, $fp); curl_setopt($ch, CURLOPT_HEADER, 0); curl_exec($ch); curl_close($ch); fclose($fp); then where you have the if file("$xml_source") put if file("pcache.txt") Note you will probably need to create a text file called pcache.txt and set permissions to 777 first.
__________________
Satan ![]() |
![]() |
![]() |
|
|