PHP absolute path to root
By
Joveice
in Programming
in Programming
Go to solution
Solved by Joveice,
I found this way, tho I'm not sure if this is the best way.
<?php $path = $_SERVER['DOCUMENT_ROOT']; $path .= "/assets/scripts/header_script.php"; include_once($path); ?>
-
Topics
-
5
-
0
-
kasdashd ·
Posted in Folding@home, Boinc, and Coin Mining0 -
1
-
6
-
Ishikudeska ·
Posted in New Builds and Planning1 -
0
-
Xxu ·
Posted in Servers, NAS, and Home Lab1 -
4
-
Issac Zachary ·
Posted in Troubleshooting5
-
-
play_circle_filled
Latest From ShortCircuit:
The coolest looking monitor. Period. - ASUS ROG display at Computex (Sponsored)

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now