2

If I add a path to the include_path, will the php function: is_file() then use this path to search for a filename that I pass to it?

blacktie24
  • 4,985
  • 6
  • 41
  • 52

2 Answers2

2

No. It only checks the passed absolute or relative path, it doesn't respect include paths

zerkms
  • 249,484
  • 69
  • 436
  • 539
1

Based on the Docs, it doesn't look like it.

Looks like if you don't include the path, it uses the current directory, otherwise it will use the path you provide.

ajon
  • 7,868
  • 11
  • 48
  • 86