Test whether a file exists anywhere in the include path

后端 未结 5 2137
时光取名叫无心
时光取名叫无心 2021-02-20 12:25

I\'m writing an autoload function and in the inner logic of it would like to test whether a certain file exists somewhere in the path prior to including it.

This is the

5条回答
  •  独厮守ぢ
    2021-02-20 12:43

    As a simple resolution, you should a test within the SPL-function file_get_contents() by setting the second argument to TRUE.

    --Rolf

提交回复
热议问题