background image

PHP 文件操作

打开文件

格式:

 fopen(filename,mode)

说明:按指定的格式打开指定的文件

 filename: 要打开的文件名

 mode :  打开模式

 fopen(“hello.txt”,”w”);

表示以写的方式打开 hello.txt 文件