文件和目录处理函数

  • basename — 返回路径中的文件名部分 | Returns trailing name component of path |
  • chgrp — 改变文件所属的组 | Changes file group
  • chmod — 改变文件模式 | Changes file mode
  • chown — 改变文件的所有者 | Changes file owner
  • clearstatcache — 清除文件状态缓存 | Clears file status cache
  • copy — 拷贝文件 | Copies file
  • delete — 参见 unlink 或 unset | See unlink or unset
  • dirname — 返回路径中的目录部分 | Returns a parent directory's path
  • disk_free_space — 返回目录中的可用空间 | Returns available space on filesystem or disk partition
  • disk_total_space — 返回一个目录的磁盘总大小 | Returns the total size of a filesystem or disk partition
  • diskfreespace — disk_free_space 的别名 | Alias of disk_free_space
  • fclose — 关闭一个已打开的文件指针 | Closes an open file pointer
  • feof — 测试文件指针是否到了文件结束的位置 | Tests for end-of-file on a file pointer
  • fflush — 将缓冲内容输出到文件 | Flushes the output to a file
  • fgetc — 从文件指针中读取字符 | Gets character from file pointer
  • fgetcsv — 从文件指针中读入一行并解析 CSV 字段 | Gets line from file pointer and parse for CSV fields
  • fgets — 从文件指针中读取一行 | Gets line from file pointer
  • fgetss — 从文件指针中读取一行并过滤掉 HTML 标记 | Gets line from file pointer and strip HTML tags
  • file_exists — 检查文件或目录是否存在 | Checks whether a file or directory exists
  • file_get_contents — 将整个文件读入一个字符串 | Reads entire file into a string
  • file_put_contents — 将一个字符串写入文件 | Write a string to a file
  • file — 把整个文件读入一个数组中 | Reads entire file into an array
  • fileatime — 取得文件的上次访问时间 | Gets last access time of file
  • filectime — 取得文件的 inode 修改时间 | Gets inode change time of file
  • filegroup — 取得文件的组 | Gets file group
  • fileinode — 取得文件的 inode | Gets file inode
  • filemtime — 取得文件修改时间 | Gets file modification time
  • fileowner — 取得文件的所有者 | Gets file owner
  • fileperms — 取得文件的权限 | Gets file permissions
  • filesize — 取得文件大小 | Gets file size
  • filetype — 取得文件类型 | Gets file type
  • flock — 轻便的咨询文件锁定 | Portable advisory file locking
  • fnmatch — 用模式匹配文件名 | Match filename against a pattern
  • fopen — 打开文件或者 URL | Opens file or URL
  • fpassthru — 输出文件指针处的所有剩余数据 | Output all remaining data on a file pointer
  • fputcsv — 将行格式化为 CSV 并写入文件指针 | Format line as CSV and write to file pointer
  • fputs — fwrite 的别名 | Alias of fwrite
  • fread — 读取文件(可安全用于二进制文件) | Binary-safe file read
  • fscanf — 从文件中格式化输入 | Parses input from a file according to a format
  • fseek — 在文件指针中定位 | Seeks on a file pointer
  • fstat — 通过已打开的文件指针取得文件信息 | Gets information about a file using an open file pointer
  • ftell — 返回文件指针读/写的位置 | Returns the current position of the file read/write pointer
  • ftruncate — 将文件截断到给定的长度 | Truncates a file to a given length
  • fwrite — 写入文件(可安全用于二进制文件) | Binary-safe file write
  • glob — 寻找与模式匹配的文件路径 | Find pathnames matching a pattern
  • is_dir — 判断给定文件名是否是一个目录 | Tells whether the filename is a directory
  • is_executable — 判断给定文件名是否可执行 | Tells whether the filename is executable
  • is_file — 判断给定文件名是否为一个正常的文件 | Tells whether the filename is a regular file
  • is_link — 判断给定文件名是否为一个符号连接 | Tells whether the filename is a symbolic link
  • is_readable — 判断给定文件名是否可读 | Tells whether a file exists and is readable
  • is_uploaded_file — 判断文件是否是通过 HTTP POST 上传的 | Tells whether the file was uploaded via HTTP POST
  • is_writable — 判断给定的文件名是否可写 | Tells whether the filename is writable
  • is_writeable — is_writable 的别名 | Alias of is_writable
  • lchgrp — Changes group ownership of symlink | Changes group ownership of symlink
  • lchown — Changes user ownership of symlink | Changes user ownership of symlink
  • link — 建立一个硬连接 | Create a hard link
  • linkinfo — 获取一个连接的信息 | Gets information about a link
  • lstat — 给出一个文件或符号连接的信息 | Gives information about a file or symbolic link
  • mkdir — 新建目录 | Makes directory
  • move_uploaded_file — 将上传的文件移动到新位置 | Moves an uploaded file to a new location
  • parse_ini_file — 解析一个配置文件 | Parse a configuration file
  • parse_ini_string — Parse a configuration string | Parse a configuration string
  • pathinfo — 返回文件路径的信息 | Returns information about a file path
  • pclose — 关闭进程文件指针 | Closes process file pointer
  • popen — 打开进程文件指针 | Opens process file pointer
  • readfile — 输出一个文件 | Outputs a file
  • readlink — 返回符号连接指向的目标 | Returns the target of a symbolic link
  • realpath_cache_get — Get realpath cache entries | Get realpath cache entries
  • realpath_cache_size — Get realpath cache size | Get realpath cache size
  • realpath — 返回规范化的绝对路径名 | Returns canonicalized absolute pathname
  • rename — 重命名一个文件或目录 | Renames a file or directory
  • rewind — 倒回文件指针的位置 | Rewind the position of a file pointer
  • rmdir — 删除目录 | Removes directory
  • set_file_buffer — stream_set_write_buffer 的别名 | Alias of stream_set_write_buffer
  • stat — 给出文件的信息 | Gives information about a file
  • symlink — 建立符号连接 | Creates a symbolic link
  • tempnam — 建立一个具有唯一文件名的文件 | Create file with unique file name
  • tmpfile — 建立一个临时文件 | Creates a temporary file
  • touch — 设定文件的访问和修改时间 | Sets access and modification time of file
  • umask — 改变当前的 umask | Changes the current umask
  • unlink — 删除文件 | Deletes a file

PHP文件访问的更多相关文章

  1. static在C中有了第二种含义:用来表示不能被其它文件访问的全局变量和函数

    C++变量根据定义位置的不同,具有不同的作用域,作用域可分为6种:全局作用域,局部作用域,语句作用域,类作用域,命名作用域和文件作用域. 从作用域看: 全局变量具有全局作用域.全局变量只需在一个源文件 ...

  2. springMVC静态文件访问

        web.xml文件  <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xs ...

  3. C#更改文件访问权限所有者(适用于各个Windows版本)

    前面也提到了,前段时间在做Online Judge系统,在正式上线前有几个比较老的版本,其中第一个版本使用ACL来控制权限以确保安全(但是这个版本完全建立在IIS上,所以这样做是没效果的),遇到了一些 ...

  4. 无废话Android之android下junit测试框架配置、保存文件到手机内存、android下文件访问的权限、保存文件到SD卡、获取SD卡大小、使用SharedPreferences进行数据存储、使用Pull解析器操作XML文件、android下操作sqlite数据库和事务(2)

    1.android下junit测试框架配置 单元测试需要在手机中进行安装测试 (1).在清单文件中manifest节点下配置如下节点 <instrumentation android:name= ...

  5. hadoop的API对HDFS上的文件访问

    这篇文章主要介绍了使用hadoop的API对HDFS上的文件访问,其中包括上传文件到HDFS上.从HDFS上下载文件和删除HDFS上的文件,需要的朋友可以参考下hdfs文件操作操作示例,包括上传文件到 ...

  6. chm文件访问提示:已取消到该网页的导航

    chm文件访问提示:已取消到该网页的导航或不能链接网页 解决方案: 右击chm文件,选择:属性->解除锁定 ,再重新打开文件即可

  7. Linux下进程的文件访问权限

    本文转自 http://blog.csdn.net/chosen0ne/article/details/10581883 对进程校验文件访问权限包括两个部分,一是确定进程的角色(属于哪个用户或者组), ...

  8. 《UNIX环境高级编程》笔记--文件访问权限和新文件、目录所有权

    1.与进程关联的用户ID和组ID 与一个进程关联的ID有一下几个: 实际用户ID和实际组ID标识我们究竟是谁.通常在一个会话间值是不会改变的,但是超级用户进程有方法改变 他们,在以后的进程控制中会进行 ...

  9. Windows平台内核级文件访问

    1.背景     在windows平台下,应用程序通常使用API函数来进行文件访问,创建,打开,读写文件.从kernel32的CreateFile/ReadFile/WriteFile函数,到本地系统 ...

  10. java利用“映射文件访问”(MapperByteBuffer)处理文件与单纯利用Buffer来处理文件的快慢比较

    处理文件是java经常使用的操作,在对一个“大文件”(比如超过64M)进行操作时一点点速度的提高都会带来性能的巨大提升.然而我们经常使用的BufferxxStream,来直接处理大文件时,往往力不从心 ...

随机推荐

  1. 数据结构_just_sort

    问题描述 给定两个序列 a b,序列 a 原先是一个单调递增的正数序列,但是由于某些原因,使得序列乱序了,并且一些数丢失了(用 0 表示).经过数据恢复后,找到了正数序列 b ,且序列 a 中 0 的 ...

  2. Java50道经典习题-程序41 猴子分桃

    题目:海滩上有一堆桃子,五只猴子来分.第一只猴子把这堆桃子凭据分为五份,多了一个,这只猴子把多的一个扔入海中,拿走了一份.第二只猴子把剩下的桃子又平均分成五份,又多了一个,它同样把多的一个扔入海中,拿 ...

  3. DjVu转PDF

    作者:马健邮箱:stronghorse_mj@hotmail.com发布:2009.09.22更新:2012.06.11针对PdfToy的新进展,更新了相关内容. 1 引言2 理论3 实现    3. ...

  4. .net core webapi +ddd(领域驱动)+nlog配置+swagger配置 学习笔记(1)

    搭建一个.net core webapi项目  在开始之前,请先安装最新版本的VS2017,以及最新的.net core 2.1. 首先创建一个Asp.Net Core Web应用程序 这个应用程序是 ...

  5. “网易大数据讲堂第一期:数说”直播活动资料:课程回放收看及PPT下载

    欢迎访问网易云社区,了解更多网易技术产品运营经验. "网易大数据讲堂第一期:数说"直播活动昨晚顺利举行.感谢各位"数"友的支持和参与. 本次活动PPT可点击这里 ...

  6. PS2018学习笔记(03-18节)

    3-认识主界面 # 主界面包括: 菜单栏.选项栏.工具栏.面板.图像编辑窗口(中间)和状态栏(底部): # 界面设置: 方法1:Ctrl+k:打开界面设置; 方法2:编辑-首选项-界面 # shift ...

  7. 老男孩Day7作业:选课系统

    1.作业需求:角色:学校.学员.课程.讲师 1. 创建北京.上海 2 所学校 2. 创建linux , python , go 3个课程 , linux\py 在北京开, go 在上海开 3. 课程包 ...

  8. 阿里云服务器部署Tornado应用指南

    本篇详细介绍tornado应用部署到阿里云服务器上的全过程. Tornado程序地址:github https://github.com/ddong8/ihasy.git 准备工作:阿里云服务器Cen ...

  9. sublime侧边栏管理sidebarEnhancements浏览器设置

    sidebarEnhancements是为了增强sublime Text侧边栏功能的一个插件,但是同时也可以实现设置浏览器浏览当前文件的功能. Ctrl+Shift+p 输入package contr ...

  10. H5切换至后台页面

    先说重点,试了很多种方法,这个真实有效 var reLoadLeftTime = false ;//监听浏览器当前页面是否被激活的事件var hiddenProperty = 'hidden' in ...