fclose
关闭一个打开文件的指针
语法
bool fclose(resource handle)
示例:
fgets
从文件指针所指位置取得列的内容
语法
string fgets(resource handle[,int length])
示例:
file
将整个文件内容读到数组中
语法
array file(string filename[,int use_include_path[,resource context]])
示例:
file_exists
检查文件是否存在
语法
bool file_exists(string filename)
示例:
filesize
取得文件大小
语法
int filesize(string filename)
示例:
fopen
打开一个文件或者url
语法
resource fopen (string filename,string mode[,bool use-include_path[,resource zcontext]])
示例:
fputs
将数据写至文件中
语法
int fputs(resource handle,string string[,int length])
示例:
fseek
设置文件指针所指的位置
语法
int fseek(resource handle,int offset[,int whence])
示例:
mkdir
建立一个目录
语法
bool mkdir(string pathname[,int mode[,bool recursive[,resource context]]])
示例:
unlink
删除文件
语法
int unlink(string filename);
示例: