Check whether a directory exists in PHP

后端 未结 4 1675
暗喜
暗喜 2020-12-16 10:31

I know, I know, this sounds soo easy. But I can\'t seem to find the correct answer on the Internet.

One of the solution I found was to use i

4条回答
  •  失恋的感觉
    2020-12-16 11:13

    bool file_exists ( string $filename )
    

    Checks whether a file or directory exists.

    http://php.net/manual/en/function.file-exists.php

提交回复
热议问题