PHP Tutorial - How to read and output other files in PHP
People often think of slow access and white page phenomenon. If it is a test environment, you can restart PHP's php-fpm process and find that it is fine again. After a while, A similar problem has arisen again. In this issue, we have invited a PHP expert from Brothers PHP Education www.lampbrother.net to share with you the method of reading and outputting other files in PHP. Thank you Tie Cheng for bringing us this enjoyable experience, friends. , are you ready for this technology journey?
ob_start();
iconv('utf-8','gb2312',readfile('1.html')); //Directly output text content
echo '