每日总结

1.php包含文件include 和 require 语句,文件处理

<?php include 'header.php'; ?>引用header.php

fopen() 函数用于在 PHP 中打开文件。

fclose() 函数用于关闭打开的文件:

fgets() 函数用于从文件中逐行读取文件。

<html>
<body>

<?php
$file=fopen("welcome.txt","r");
?>

</body>
</html>

原文地址:https://www.cnblogs.com/chenghaixiang/p/14911335.html