php 中用fread读取文件的代码演示
<?php $fh = fopen("testfile.txt", 'r') or die("File does not exist or you lack permission to open it"); $text = fread($fh, 3); fclose($fh); echo $text; ?>
php 中用fread读取文件的代码演示
<?php $fh = fopen("testfile.txt", 'r') or die("File does not exist or you lack permission to open it"); $text = fread($fh, 3); fclose($fh); echo $text; ?>