RCRAMER.COM
Clever website slogan
Home > Tech > PHP

PHP Directories

Also see w3schools.com - Filesystem Functions

Accessing a directory

opendir()

Reading the contents of a directory

readdir() and scandir()

Closing a directory

closedir()

Changing the working directory

chdir()

Also see getcwd() to find the current directory and chdir() to change to the root directory of the current process./p>

Creating a directory

mkdir()

Changing permissions

See fperms(), chgrp(), chmod(), chown() and stat()

Rename a directory

rename()

Remove a directory

rmdir()