fread php 中用fread读取文件的代码演示
php 中用fread读取文件的代码演示 [代码片段(7行)]
<?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
$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;
?>
@CopyRight 2002-2008, 1SOHU.COM, Inc. All Rights Reserved QQ:1010969229