UK[ˈəʊpən] US[ˈoʊpən]
adj.Open, open; open, public; frank; room for discussion
vt.& vi. (Open) to open; to start; to unfold; to start
n.Open; outdoors, in the wild; in the open
vi.To open; to display, to appear
vt.Open;
Third person singular: opens Present participle: opening Past tense: opened Past participle: opened
php opendir() function syntax
Function: Open the directory handle.
Syntax: opendir(path,context);
Parameters:
Parameter | Description |
path | Required. Specifies the directory path to be opened. |
context | Optional. Specifies the environment for directory handles. context is a set of options that modify the behavior of the directory stream. |
Description: If successful, the directory handle resource will be returned. Returns FALSE on failure. If the path is not a legal directory, or the directory cannot be opened due to licensing restrictions or file system errors, an error of level E_WARNING is thrown.
php opendir() function example
<?php $file = "/phpstudy/WWW/"; if (opendir($file)) { echo "打开目录成功"; }else{ echo "打开目录失败"; } ?>