当前位置: 首页 > 网络学院 > 服务端脚本教程 > PHP > PHP Directory

PHP
PHP Libxml
PHP Math
PHP Misc
PHP MySQL
PHP SimpleXML
PHP String
PHP XML
PHP Zip
PHP Mail
用PHP5的DirectoryIterators递归扫描目录
PHP 阻止SQL注入式攻击
PHP5面向对象 - 基础 - 类和对象
PHP5面向对象 - 基础 - 类的属性( public )
PHP5面向对象 - 基础 - 类的属性( private )
PHP5面向对象 - 基础 - 方法
PHP5面向对象 - 基础 - 对象的比较
php5面向对象 - 基础 - 构造函数
php5面向对象 - 基础 - 析构函数
用PHP控制用户的浏览器 - ob*函数的使用
PHP PDO 学习笔记

PHP Directory


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-01   浏览: 919 ::
收藏到网摘: n/a

PHP Directory Introduction
PHP目录介绍

The directory functions allow you to retrieve information about directories and their contents.
目录函数用于获取目录及其内容的信息


Installation

The directory functions are part of the PHP core. There is no installation needed to use these functions.
本函数库作为 PHP 内核的一部分,不用安装就能使用。


PHP Directory Functions
PHP目录函数

PHP: indicates the earliest version of PHP that supports the function.
PHP:最早支持这些函数的PHP版本

Function
函数
Description
说明
PHP
chdir() Changes the current directory
改变当前的目录
3
chroot() Changes the root directory of the current process
改变当前目录的根目录
4
dir() Opens a directory handle and returns an object
directory 类
3
closedir() Closes a directory handle
关闭目录句柄
3
getcwd() Returns the current directory
取得当前工作目录
4
opendir() Opens a directory handle
打开目录句柄
3
readdir() Returns an entry from a directory handle
从目录句柄中读取条目
3
rewinddir() Resets a directory handle
倒回目录句柄
3
scandir() Lists files and directories inside a specified path
列出指定路径中的文件和目录
5


PHP Directory Constants
PHP目录常量

PHP: indicates the earliest version of PHP that supports the constant.
PHP:最早支持这些常量的PHP版本

Constant
常量
Description
说明
PHP
DIRECTORY_SEPARATOR   3
PATH_SEPARATOR   4

评论 (0) All

登陆 | 还没注册?