mkdir() Function

The mkdir() function is used to create a directory (make folder) at server and it returns two outputs that's are TRUE and FALSE .TRUE means success and FALSE means failure.

Demo :



New Directory Name :  
       
Folder inside have 3 files available thats are :






















Example :

In the above demo is used to mkdir directory function.just type folder name at New Directory Name and then click to create button and see below of new folder.

Code :

Following code is use to mkdir function if you need code to copy and use to your website.


<?php
  $directory_name = "New Folder";
  mkdir($directory_name);
?>

In the above $directory_name script is used to assign a new folder name and mkdir() function is used to create a new folder of web server.

Free Download Script :

If you need to mkdir function demo code and download from following link.

Download




Content