I am encounter with a problem when i give full path to mkdir it says No such file or directory but when i am providing the same back but first going back to one directory it work
I am just want to ask why this is not working
$name = "4ftwx"; // dir name $domain = $_SERVER['HTTP_HOST']; mkdir($domain.'/project/'.$name); //localhost/project/4ftwx
but it work when i call like this
both pointing same path then why it is not workingAnswer1:
Maybe you should use
$_SERVER['DOCUMENT_ROOT'] to get the document root directory under which the current script is executing.