获取路径的文件名
string basename(string path[,string suffix])
获取路径的目录
string dirname(string path)
了解更多的路径信息
array pathinfo(string path)
确定绝对路径
string realpath(string path)
确定文件的大小
int filesize(string filename)
计算磁盘的可用空间
float disk_free_space(string directory)
计算磁盘的总容量
float disk_total_space(string directory)
确定文件的最后访问时间
int fileatime(string filename)
确定文件的最后改变时间
int filectime(string filename)
确定文件的最后修改时间
int filemtime(string filename)
识别文件末尾字符
int feof(string resource)
打开和关闭文件
resource fopen(string resource,string mode[,int use_include_path[,resource zountext]])
boolean fclose(resource filehandle)
将文件读入数组
array file9string filename[,int user_inlucde_path[,resource context]])
将文件内容读入字符串变量
string file_get_contents(string filename[,int use_inlude_path[resource context]])
将CSV文件读入数组
array fgetcsv(resource handle[,int length[,string delimiter[,string enclosure]]])
读取指定数目的字符
string fgets(resource handle[,int length])
从输入中剔除标记,清除所有HTML和PHP标记
string fgetss(resourcce handle,int length[,string allowable_tags])
以一次读取一个字符的方式读取文件
string fgetc(resource handle)
忽略换行符
string freed(resource handle,int length)
读取整个文件
int readfile(string filename[,int use_include_path])
根据预定义的格式读取文件
mixed fscanf(resource handle,string format[,string var1])
将字符串写入文件
int fwrite(resource handle,string string[,int length])
移动文件指针
int fseek(resource handle,int offset[,int whence])
打开目录句柄
resource opendir(string path)
关闭目录句柄
void closedir(resource directory_handle)
解析目录内容
string readdir(resource directory_handle)
将目录读入数组
array scandir(string directory[,int sorting_order[,resource context]])
删除目录
int rmdir(string dirname)
重命名文件
boolean rename(string olename,string newname)
触摸文件
int touch(sting filename[,int time[,int atime]])