Hi,
I am a total newbie at PHP and am trying my best to understand some things.
I have a file called header.php located in includes/header.php
I also have a file called h_shop.php located in cart/h/h_shop.php
The problem I am having is how to automatically reference the header include using php instead of a numerous amounts of slashes. A config file would help as I have a number of pages in the folder cart/h/
This is what I started with but doesn't work mainly because I am testing on a local server and when I upload it I have to change all the files references again:
<?php
require("../../../include/header.php");
?>
Any help or understanding of this will help greatly.
Thanks