PHP directory traversal opendir function_PHP tutorial

WBOY
Release: 2016-07-20 11:02:28
Original
1054 people have browsed it

The function of opendir() function is: open the directory handle.

If this function runs successfully, it will return a set of directory streams (a set of directory strings), if it fails, it will return an error [error]. You can hide errors by adding "@" at the beginning of the function. ​

syntax  Syntax  opendir(directory,context)  parameter   

Parameter description  
Description Directory required. specifies the directory to stream
Required parameters. Specify directory object  

Optional parameters. Specify the context of the directory object that needs to be processed. This context includes a set of options that can change the way the text stream is displayed

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!