案例:PHP案例     状态:不可编辑再运行    进入竖版
 运行结果 
x
 
1
2
<!DOCTYPE html>
3
<html>
4
<body>
5
6
<?php
7
$myfile = fopen("webdictionary.txt", "r") or die("Unable to open file!");
8
// 输出一行直到 end-of-file
9
while(!feof($myfile)) {
10
   echo fgets($myfile) . "<br>";
11
}
12
fclose($myfile);
13
?>
14
15
</body>
16
</html>
17