Lelis
Lelis

Reputation: 325

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

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

Upvotes: 1

Views: 140

Answers (4)

Pekka
Pekka

Reputation: 449843

  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.

Upvotes: 2

George Kastrinis
George Kastrinis

Reputation: 5182

  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).

Upvotes: 0

Ibu
Ibu

Reputation: 43850

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

Upvotes: -1

user680786
user680786

Reputation:

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

include

Upvotes: 0

Related Questions