2000) { echo "$strContents"; $bNeedToCacheIt = FALSE; } } } if ($bNeedToCacheIt === TRUE) { $strURL = 'http://www.boston-condo.com'; //$strURL = "http://host.averyst.com/~bostonc"; $strURL .= "/luxurybuildings_real.htm"; $strContent = file_get_contents ($strURL); // Write the cache. if (!$handle = fopen("c9234570/$file", 'w')) { echo "Cannot open file ($file)"; exit; } // Write $somecontent to our opened file. if (fwrite($handle, $strContent) === FALSE) { echo "Cannot write to file ($file)"; exit; } echo "$strContent"; } $time_end = microtime_float(); $timediff = $time_end - $time_start; echo ""; ?>