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

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -