require once different on server

Solutions on MaxInterview for require once different on server by the best coders in the world

showing results for - "require once different on server"
Madeline
11 Apr 2017
1define('__ROOT__', dirname(dirname(__FILE__))); //call define untill you get to the root directory
2require_once (__ROOT__."/Path/To/File.php"); //append __ROOT__ to the string