I'm not sure if I've posted the title correct as I'm not sure if there's a tehnical title for what I'm looking for - see below.
On my localhost server I have a clone of my VPS files as I wish to sync them via git.
My index.php
file contains PHP includes for header and footer:
<?php include(/web/modules/footer.php); ?>
On the VPS the website is hosted inside /home/website. On my localhost (XAMPP on Mac OS X) at htdocs/website.
On localhost the index.php
will not load the stylesheets or the footer.php if the /
is at the begining of the PHP include.
Is there any way around so I can make XAMPP to behave correctly with /
?
Thank you.