Hey, how would I use require in php and use a path which starts from a root or something? As in, not relative to that page, as with what I'm using a lot of pages are loaded within another page and so all the paths change. Thanks.
Alright! I found a way to do it, by using:
$root = realpath($_SERVER["DOCUMENT_ROOT"]);
include "$root/inc/include1.php"
Does anyone know how I would do this for href html images too?
Alright! I found a way to do it, by using:
$root = realpath($_SERVER["DOCUMENT_ROOT"]);
include "$root/inc/include1.php"
Does anyone know how I would do this for href html images too?