<?php
$handle=fopen("g:/a.txt","r");
$contents=fgets($handle,5);
$print_r($contents);
$fclose($handle);
?>
执行成功会读取a.txt文件的4个字符并输出。可是我执行之后一点反应都没有……
$handle=fopen("g:/a.txt","r");
$contents=fgets($handle,5);
$print_r($contents);
$fclose($handle);
?>
执行成功会读取a.txt文件的4个字符并输出。可是我执行之后一点反应都没有……
fclose($handle);
应为
print_r($contents);