Home > Backend Development > PHP Tutorial > php中mkdir中异常,浪费时间甚多

php中mkdir中异常,浪费时间甚多

WBOY
Release: 2016-06-13 10:43:32
Original
946 people have browsed it

php中mkdir中错误,浪费时间甚多

mkdir若上级目录不存在,刚无法创建。此点请注意。我在做王容说的图片上传时浪费时间很多。

第二个知识点:返回文档实际的路径函数:

function fileDir(){$arr=explode('/',$_SERVER[SCRIPT_FILENAME]);for($k=0;$k<count implode><br><br><div class="clear">
                 
              
              
        
            </div></count>
Copy after login
Related labels:
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