Suscriber with us



Receive HTML?

Syndicate

Directory functions PDF Print E-mail

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 

chroot() 

Changes the root directory of the current process 

dir() 

Opens a directory handle and returns an object 

closedir() 

Closes a directory handle 

getcwd() 

Returns the current directory 

opendir() 

Opens a directory handle 

readdir() 

Returns an entry from a directory handle 

rewinddir() 

Resets a directory handle 

scandir() 

Lists files and directories inside a specified path 

PHP Directory Constants

PHP: indicates the earliest version of PHP that supports the constant.

Constant Description PHP

DIRECTORY_SEPARATOR 

 

PATH_SEPARATOR 

 

 4 





Digg!Del.icio.us!Google!Live!Facebook!Slashdot!Technorati!StumbleUpon!Newsvine!Yahoo!Free social bookmarking plugins and extensions for Joomla! websites!
Last Updated ( Thursday, 03 April 2008 )
 
< Prev   Next >

Polls

Which is the best Scripting language?