Adding a php include from a root menu?

Kyle M

New member
ok well im doing a redesign and i have diffrent folders so i can have an index of the folder so i have like url.com/request so i dont have the file extension. i am trying to get a php include from the root menu where i am storing it at what should i put in front of the nav.php to get it at the root menu...??
sorry but that didnt work dude
 
Hi Kyle M,

I would guess it's:
include("../your_file_name.php");

The number of levels you want to go back toward the root, you add on the "../" before the file name.

If for some reason you want to back up 2 levels, it would be:
"../../your_file_name.php"

And 3 levels, it would be:
"../../../your_file_name.php"

Best regards,

subexpression
 
Back
Top