1.php包含文件include 和 require 语句,文件处理
<?php include 'header.php'; ?>引用header.phpfopen() 函数用于在 PHP 中打开文件。
fclose() 函数用于关闭打开的文件:
fgets() 函数用于从文件中逐行读取文件。
<html> <body> <?php $file=fopen("welcome.txt","r"); ?> </body> </html>