!file_exists('./a') && exit('目录./a不存在!')

解决方案 »

  1.   

    用Exceptions,设置一个变量来记录每次的错误信息,last_error_msg()就是显示这个变量的内容
      

  2.   

    http://www.bulaoge.com/topic.blg?dmn=stone&tid=175831#Content
      

  3.   

    ini_set('track_errors', 1);
    @mkdir("./a/b/c") or die($php_errormsg);
      

  4.   

    @mkdir("./a/b/c");
    不能这样建目录
      

  5.   

    <?php
    $filename = '/path/to/foo.txt';if (file_exists($filename)) {
        print "The file $filename exists";
    } else {
        print "The file $filename does not exist";
    }
    ?>
      

  6.   

    TO : ice_berg16(寻梦的稻草人) & xuzuning(唠叨) 对 要的就是这样的效果,不过这里只有错误描述的文本,要是有文件名和行号就更好了。
    马上揭帖