Answers for "require_once different on server"

PHP
0

require_once different on server

define('__ROOT__', dirname(dirname(__FILE__))); //call define untill you get to the root directory
require_once (__ROOT__."/Path/To/File.php"); //append __ROOT__ to the string
Posted by: Guest on August-11-2020

Code answers related to "require_once different on server"

Browse Popular Code Answers by Language