Greenguy's Board


Go Back   Greenguy's Board > Newbie Questions
Register FAQ Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
Old 2006-10-02, 12:29 PM   #15
Satan
If something goes wrong at the plant, blame the guy who can't speak English
 
Join Date: Sep 2006
Posts: 30
Quote:
Originally Posted by Xallow View Post
satan I need Your help,

I dont have a clue what to do about it
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
Satan is offline   Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:32 AM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc