Home > Backend Development > PHP Tutorial > Error resolution in mkdir in php_PHP tutorial

Error resolution in mkdir in php_PHP tutorial

WBOY
Release: 2016-07-13 17:53:53
Original
844 people have browsed it

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:...
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template