I have a MainClass.php file with other .php files in the same directory. I noticed that I can include other .php files inside this file by using:
require "file.php";
and it seems to load them even if I don't specify the full path to the script. Will this work on any server setup? Or do I have to manually add the full path or change the include path:
set_include_path(dirname(__FILE__));
before the require statements
?