/ in the beginning of a link to get to the root folder doesn\'t work in php include.
for example \"/example/example.php\"
What is the solution?
Every web server has a public_html folder, in which you usually keep your files etc. By using /, you will not get to public_html, instead you direct towards the main (unaccesible) root. So, use $_SERVER['DOCUMENT_ROOT']."/your/locati.on" instead
public_html
/
$_SERVER['DOCUMENT_ROOT']."/your/locati.on"