The relative path used by the require load file often fails. The problem of using an absolute path is normal.

  question

The path of the file to be included has been previously set to include_path through set_include_path.

Then, when using require to load the file, the relative path of the directly written file.

Normally, files in require can be automatically loaded within the program according to include_path.

However, the problem now is that this method is often effective and ineffective, that is, sometimes the loading fails, but the loading succeeds after refreshing.

However, if you use the absolute path of the file directly in require, this problem will not occur.

Excuse me, is the same page valid and invalid when loading files?