x
 
<!DOCTYPE html>
<html>
<body>
<?php
$myfile = fopen("../demo/php/webdictionary.txt", "r") or die("无法打开文件!");
// 输出一行直到文件结束
while(!feof($myfile)) {
  echo fgets($myfile) . "<br>";
}
fclose($myfile);
?>
</body>
</html>