Creates a new directory.
mkdir() creates a directory with the specified permissions. The permissions are of the same form as for chmod() and fileperms(). TRUE is returned on success. If an error occurs, FALSE is returned.
<?php
if (mkdir("temp", 0701))
print "Directory created";
?> Directory created Creates a directory with full permissions for the owner, and only the "x" bit set for others.