web 2.0

How to use PHP & Create Directory

How to use PHP & Create Directory Learn how to use the PHP to Create Directory on web site

ShotDev Focus:
- PHP & Create Directory

Example

php_create_folder.php


<html>
<head>
<title>ShotDev.Com Tutorial</title>
</head>
<body>
<?php
$flgCreate = mkdir("shotdev");
if($flgCreate)
{
echo "Folder Created.";
}
else
{
echo "Cannot create folder.";
}
?>
</body>
</html>

Create a php file and save to path root-path/myphp/

Run
http://localhost/myphp/php_create_folder.php

Screenshot

PHP Create Directory
.
.
.

Download this script.
Download

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (1 votes, average: 1.00 out of 10)
Loading ... Loading ...

Leave a Reply

You must be logged in to post a comment.