How to create directory or folder with HTML button and PHP
PHP Tutorial » Create directory or folder
A new directory or folder can be created in PHP using mkdir() function. This PHP function takes a path to the directory or folder to be created.
Create directory or folder using 0777 allows the specification of permissions on the directory - examples
<?php
$folder_name=$_POST['createfolder'];
if (!file_exists($output_dir . $folder_name))/* Check folder exists or not */
{
@mkdir($output_dir . $folder_name, 0777);/* Create folder by using mkdir function,
(controlling such issues as whether the directory is writable): */
echo "<script type = 'text/javascript'>alert('Folder Created!');</script>";/* Success Message */
}
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Create folder with HTML button</title>
</head><body>
<form action="create_folder.php" method="post">
<h2> Create New Folder </h2>
Folder name to create
<input name="createfolder" type="text">
<input type="submit" value="Create Folder">
</form>
</body>
</html>
How to create directory with HTML button and PHP, create directory if it doesn't exist, with write permissions, with 777 permissions
How to create directory or folder with HTML button and PHP - php tutorial
This tool makes it easy to create, adjust, and experiment with custom colors for the web.

Magnews2 is a modern and creative free magazine and news website template that will help you kick off your online project in style.

Find here examples of creative and unique website layouts.

Find here examples of creative and unique website CSS HTML menu.