PHP/File Directory/mkdir
Creating Directories with mkdir()
<?
mkdir( "testdir", 0777 ); // global read/write/execute permissions
mkdir( "testdir", 0755 ); // world and group: read/execute only
// owner: read/write/execute
?>
Making a directory
<?php
mkdir("/tmp/apples",0777) or die($php_errormsg);
?>