View Single Post
Old 03-10-2009, 09:41 AM   #69 (permalink)
SawGore
The Visitor
 
Join Date: Feb 2009
Posts: 4
Thanks: 0
SawGore is on a distinguished road
Default

PHP Code:
$opts = array(
            
'http'=>array(
            
'timeout'=> 5,
            
'method'=>"GET",
            
'header'=>"User-Agent: ".self::BROWSER." \r\n"
            
)
        );
        
$this->content = @file_get_contents($url,false,stream_context_create($opts)); 
This is a part of class. After the most dificult way, is to cached datas. return error with cache, with no cache, no error cache must be update, no update, …

nota: short timeout for speed page loading and @ for no warning
SawGore is offline  
Reply With Quote