php文件读取到网页中
这里我以MySQL查询日志为源文件输入,直接显示到网页中查看。
创新互联从2013年创立,先为抚松等服务建站,抚松等地企业,进行企业商务咨询服务。为抚松企业网站制作PC+手机+微官网三网同步一站式服务解决您的所有建站问题。
0) { while ($t != "\n") { $flag = fseek($fp, $pos, SEEK_END); if (fseek($fp, $pos, SEEK_END) == -1) { rewind($fp); $t = "\n"; $line = 0; } else { $t = fgetc($fp); $pos--; } } $t = " "; $line--; } while(!feof($fp)){ $data .= fgets($fp); $data .= '
'; } fclose($fp); echo $data ?>
0) { while ($t != "\n") { $flag = fseek($fp, $pos, SEEK_END); if (fseek($fp, $pos, SEEK_END) == -1) { rewind($fp); $t = "\n"; $line = 0; } else { $t = fgetc($fp); $pos--; } } $t = " "; $line--; } while(!feof($fp)){ $data .= fgets($fp); $data .= '
'; } fclose($fp); echo $data ?>
标题名称:php文件读取到网页中
链接分享:http://myzitong.com/article/pgogii.html