diff --git a/functions/cache.php b/functions/cache.php index 2aef058..560827d 100644 --- a/functions/cache.php +++ b/functions/cache.php @@ -41,10 +41,9 @@ $html = curl_exec($curl); curl_close($curl); - - $myfile = fopen($cachefile,"w") or die("Unable to open file!"); - fwrite($myfile, $html); - fclose($myfile); + #索引数据写入文件 + file_put_contents($cachefile,$html); + #读取索引 $cache = @file_get_contents($cachefile) or die("Unable to open file!"); } else{ diff --git a/functions/readme.php b/functions/readme.php index a3f687a..d30ca4a 100644 --- a/functions/readme.php +++ b/functions/readme.php @@ -19,7 +19,7 @@ - + @@ -31,8 +31,8 @@