require once different on server

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

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
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