streamWrapper::dir_opendir()
(PHP 4 >= 4.3.2, PHP 5, PHP 7)
Open directory handle
说明
public streamWrapper::dir_opendir(string $path,int $options): bool
This method is called in response toopendir().
参数
- $path
Specifies the URL that was passed toopendir().
Note:
The URL can be broken apart withparse_url().
- $options
Whether or not to enforcesafe_mode(0x04).
返回值
成功时返回TRUE
,或者在失败时返回FALSE
。
参见
opendir()
打开目录句柄- streamWrapper::dir_closedir() Close directory handle
parse_url()
解析 URL,返回其组成部分