file_exists() returns false, but the file DOES exist

后端 未结 14 1285
一向
一向 2020-12-05 09:40

I\'m having a very weird issue with file_exists(). I\'m using this function to check if 2 different files in the same folders do exist. I\'ve double-checked, they BOTH do ex

14条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-05 10:25

    It's because of safe mode. You can turn it off or include the directory in safe_mode_include_dir. Or change file ownership / permissions for those files.

    php.net: file_exists()
    php.net: safe mode

提交回复
热议问题