Home  >  Article  >  Backend Development  >  Error resolution in mkdir in php_PHP tutorial

Error resolution in mkdir in php_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 17:53:53838browse

mkdir cannot be created if the upper-level directory does not exist. Please note this. I wasted a lot of time uploading pictures as Wang Rong said.

Second knowledge point: Return the actual path function of the document:

[php]
function fileDir(){
$arr=explode('/',$_SERVER[SCRIPT_FILENAME]);
for($k=0;$k $arrNew[$k]=$arr[$k];
}
return implode('/',$arrNew);
}

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/478003.htmlTechArticlemkdir cannot be created if the upper-level directory does not exist. Please note this. I wasted a lot of time uploading pictures as Wang Rong said. The second knowledge point: Return the actual path function of the document:...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn