mkdir

(FW >= 1.0)

mkdir - Make directory

Description

int mkdir( string $pathname )
Attempts to create the directory specified by pathname.

Parameters

pathname

The directory path. Using / at the beginning will make it relative to the root, otherwise it will be relative to the current folder that the script is running in or the folder that is set using chdir()

Return Value

Returns 1 if the directory was created and 0 on failure.

Examples

<? 
if (!mkdir("/path/to/dir")) {
    die('Failed to create folders...');
}
?>