codingtcher.com
Theme Night
Home
Login

Create multiple directories php

Home » Tutorial Post » Create multiple directories php
function makedir($a){
	$root = $_SERVER["DOCUMENT_ROOT"];
	if(!is_dir($root.'/'.$a)){
	mkdir($root.'/'.trim($a,'/').'', 0755, true);
	}
}

makedir("/test/test2/test3/");

Related Post