Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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
 
PREVIOUS NEXT
Tagged: #server
ADD COMMENT
Topic
Name
1+1 =