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

PHP
WINDOWS下安装MySQL
PHP 制作 网站/服务器 监视脚本
用PHP和CSS制作活动按钮
PHP 单件模式
PHP MVC模式,类封装以及HACK
PHP 中使用正则表达式
PHP 防止 SQL 注入攻击
PHP 跨站点脚本攻击
PHP 防止用户操纵 GET 变量
PHP 防止远程表单提交

PHP Directory


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

登陆 | 还没注册?