PHP mkdir() function – Create Directory

PHP mkdir() Function

Create Directory in PHP

The mkdir() function is used to create a new directory in computer.

mkdir() function syntax

<?php

mkdir(“directory_name”);

?>

mkdir() function Exmaple

Above example we use mkdir() function to create directory named with “meera”.

The new directory created in the php script folder.

PHP form script example to create directory

The output of create directory using mkdir() php example is:

PHP mkdir() function

PHP mkdir() function example for create directory.

 

Leave a Reply

Your email address will not be published. Required fields are marked *

1 + 2 =


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">