Copy the code The code is as follows:
//Open the file
$fp=fopen('tmp .html', 'r');
//Reading file contents can be operated with the following two functions fread, file_get_contents
$str=fread($fp, filesize('tmp.html')); //filesize is to get the file size
$content=file_get_contents('tmp.html');
//Write file
$news=fopen('news.html', 'w');
fwrite($news, $content);
//Close the file stream
fclose($fp);
fclose($news);
echo $content;
?>
http://www.bkjia.com/PHPjc/323823.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/323823.htmlTechArticleCopy the code as follows: ?php //Open the file $fp=fopen('tmp.html', 'r '); //Reading file contents can be operated with the following two functions fread, file_get_contents $str=fread($fp, file...