nicholas j
New member
I know that <?php include("./something.html"); ?> will include from the directory your in, but what would you use to include from the site root(if its possible)
nevermind i figured it out:
<?php include("$root/home/a3465/public_html/something.html"); ?>
btw that is from the root of a 000webhost and the username (a3465) is randon, not actual. on other services this path will change but always start with "$root/" 000webhost however looks exactly like this except have your username and of course will complete somewhere past public_html.
nevermind i figured it out:
<?php include("$root/home/a3465/public_html/something.html"); ?>
btw that is from the root of a 000webhost and the username (a3465) is randon, not actual. on other services this path will change but always start with "$root/" 000webhost however looks exactly like this except have your username and of course will complete somewhere past public_html.