Check if a file was included or loaded

后端 未结 12 1221
轻奢々
轻奢々 2020-12-08 13:35

Is there any elegant way to check if a file was included by using include/include_once/require/require_once or if the pag

12条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-08 13:46

    Here's a different idea. Just include the file whenever you need it. Inside the include file you can decide whether it needs to include the contents:

提交回复
热议问题