Creating a new folder using PHP

by Sanju 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" />

Tagged in:

1021
like
0
dislike
0
mail
flag

You must LOGIN to add comments