常用文件操作函数

1、打开文件:fopen(filename,mode,include_path,context)

   2、复制文件:copy(source,destination)

3、删除文件:unlink(filename,context)

4、文件读取

file_get_contents(path,include_path,context,start,max_length)

 

5、文件写入:
fwrite(file,string,length)

 


 6、文件移动

move_uploaded_file(file,newloc)

7、过滤PHP和html标签

fgetss(file,length,tags)

 



posted @ 2017-04-19 15:22  程昱仲德  阅读(172)  评论(0)    收藏  举报