php 文件、目录操作函数

目录

opendir

readdir

closedir

mkdir

rmdir  : 只能删除空目录

文件

filetype

filesize

is_file

basename

dirname

pathinfo

unlink : 删除文件

fopen : r:只读

r+:文件开头读写

w:只写 覆盖内容

w+:读写

a: 文件末尾写入

a+:文件末尾读写 

file()

fread()

fgets()

fgetc()

file_get_contents()

file_put_contents()

文件+目录 file_exist

原文地址:https://www.cnblogs.com/hejun695/p/5336443.html