Creating a new folder using PHP
by Sanju[ Edit ] 2010-06-23 12:06:59
Creating a new folder using PHP
Here is the code which helps you to create folder usign php...
<?php
$folder = $_REQUEST['foldername'];
if(is_dir("E:\\Hiox\\Menus\\$folder"))
echo "directory exists!";
else
{
mkdir("E:\\Hiox\\Menus\\$folder");
echo "folder created";
}
?>
<form action= "folder.php" method="post">
<input type="text" name = "foldername" size="30" />
<input type="submit" value="Add" />