How To Make A New Directory With Read and Write (0777) Options Using With PHP Code

mkdir function in PHP
mkdir function in PHP
mkdir function in PHP

Hello Reader,

Today I am going to show you how to make a directory using PHP code snippet in cPanel folder in any location. Just follow my step by step method, from the below listed topic you will going to learn how easily you can create or make a new directory or folder.

Use blow PHP Code to create a Directory or a Folder.

<?php
 
	$oldmask = umask(0);
	mkdir("./ExistingFolderName/NewFolderName", 0777, true);
	umask($oldmask);
?>

Please ask any questions about this or add your comments on this topic below.