开发者

some doubts in PHP include() <b>Function</b>

开发者 https://www.devze.com 2023-03-08 01:16 出处:网络
Hello guys I have one question ... Is it possible to run PHP with the include() Function if disabled? Is possible that the include() Function you can not find a file that 开发者_运维百科really exist

Hello guys I have one question ...

  1. Is it possible to run PHP with the include() Function if disabled?
  2. Is possible that the include() Function you can not find a file that 开发者_运维百科really exists?

Thank you


  1. I don't think so, no - include is a language construct and as far as I know, can't be disabled.

  2. Yes, if you don't have the proper rights to read the file.

You should probably add some more information about your specific situation to get more specific help.


  1. No, it's not a function, it's a language construct
  2. No

include


  1. Why would you want to disable includes?
  2. Yes it is, if you don't specify the path correctly (in relation to the current php file).


include is usually not disabled. You almost always need and include, and it is a good idea to use require or require_once if the file you want to use is required for your code to run

0

精彩评论

暂无评论...
验证码 换一张
取 消