PHP28-PHP Directory Functions

PHP Directory Introduction The directory functions allow you to retrieve information about directories and their contents. Installat...

PHP Directory Introduction

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 Directory Functions

PHP: indicates the earliest version of PHP that supports the function.
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 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: indicates the earliest version of PHP that supports the constant.

Constant Description PHP
DIRECTORY_SEPARATOR 3
PATH_SEPARATOR 4
Name

ADO,131,ASP,3,C++,61,CORE JAVA,1,CSS,115,HTML,297,index,5,JAVASCRIPT,210,OS,47,PHP,65,SAD,53,SERVLETS,23,SOFTWARE ENGINEERING,245,SQL,71,TCP/IP,1,XHTML,9,XML,18,
ltr
item
Best Online Tutorials | Source codes | Programming Languages: PHP28-PHP Directory Functions
PHP28-PHP Directory Functions
https://1.bp.blogspot.com/-9BHVf_5TT0o/XVvnrgg1alI/AAAAAAAAiCY/-rDxnJrUglU7z961MFIan3C46LbRHfK4ACLcBGAs/s320/intro.jpg
https://1.bp.blogspot.com/-9BHVf_5TT0o/XVvnrgg1alI/AAAAAAAAiCY/-rDxnJrUglU7z961MFIan3C46LbRHfK4ACLcBGAs/s72-c/intro.jpg
Best Online Tutorials | Source codes | Programming Languages
https://www.1000sourcecodes.com/2019/08/php28-php-directory-functions.html
https://www.1000sourcecodes.com/
https://www.1000sourcecodes.com/
https://www.1000sourcecodes.com/2019/08/php28-php-directory-functions.html
true
357226456970214079
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share to a social network STEP 2: Click the link on your social network Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy Table of Content