Finding Your Absolute Path

For many things, including php includes you will need to insert your absolute path. It will usually look something like /home/YOURUSERNAME/public_html/ but it could vary from host to host. Here’s how to find your absolute path.

1.Make a new page and copy this code below and paste it into the file.

<?php = $_SERVER['DOCUMENT_ROOT']; ?> 

2. Save the file and then view it, which will show you your absolute path.
You can then use this to paste into your includes.