php - No such file or directory error using mkdir -
i encounter problem when give full path mkdir says no such file or directory when providing same first going 1 directory work
i want ask why not working
$name = "4ftwx"; // dir name $domain = $_server['http_host']; mkdir($domain.'/project/'.$name); //localhost/project/4ftwx
but work when call this
mkdir('../project/'.$name);
both pointing same path why not working
maybe should use $_server['document_root']
document root directory under current script executing.
Comments
Post a Comment