How to create a directory using PHP
TAGS: Create, dir, mkdir, directory

if (isset($_POST['doit']))  { 
$dirname = $_POST['dirname']; 
$stien = getcwd(); 
mkdir ($stien . "/" . $dirname); 
echo "Okay, directory: " . $stien . "/" . $dirname . " have been created"; exit(); 

<TD>Give your directory a name</TD> 
<TD><INPUT TYPE='text' NAME='dirname'></TD> 
<TD>Click here to create directory: </TD> 
<TD><INPUT TYPE='submit' NAME='doit' VALUE='Create directory'></TD> 

This example shows how easy it is to create a directory using PHP.
Just put the above code into a PHP file and call it from your webserver.