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

PHP
php 无限分类的实现
常用PHP代码
windows下安装配置php视频教程
MySQL数据库结构和数据的导出和导入
PHP实现 IP Whois 查询
PHP5 this,self和parent关键字详解
PHP 安全技巧连载 #1[译]
PHP 安全技巧连载 #2[译]
PHP 安全技巧连载 #3[译]
PHP 安全技巧连载 #4[译]
PHP 安全技巧连载 #5[译]
PHP 安全技巧连载 #6[译]
PHP 安全技巧连载 #7[译]
PHP 安全技巧连载 #8[译]
PHP 安全技巧连载 #9[译]
PHP 安全技巧连载 #10[译]
PHP 安全技巧连载 #11[译]
PHP error_reporting的使用
PHP 安全技巧连载 #12
使用PHP做Linux/Unix守护进程

PHP Directory


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-01   浏览: 921 ::
收藏到网摘: 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

登陆 | 还没注册?