Can you spot anything I'm overlooking?
if(!file_exists($file) || filemtime($file) < time() - 3600)
{
$ch = curl_init('http://www.mydomain.com/rss?p=' . urlencode($rpl) . '&u=' . urlencode($units['date']));
@curl_setopt($ch, CURLOPT_HEADER, 0);
//@curl_setopt($ch, CURLOPT_MUTE, 1);
@curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$str = @curl_exec($ch);
@curl_close($ch);
$fp = @fopen($file,'w');
@fwrite($fp,$str);
@fclose($fp);
}
$this->data = @file_get_contents($file);