Hello folks,
Newbie seeking some advice, I'm working on a website and wanted to use php includes in the pages. I tried this method first:
<?php include "/path1/path2/file.php"; ?>
Proceeded to load the web page online and nothing happened. I did alittle research and found out that i could use the following method.
<?php include $_SERVER['DOCUMENT_ROOT'] . "/path1/path2/file.php"; ?>
This one worked but now i am noticing that some of the images on the page have at least 2px cell padding spaces between them that wasn't there before any ideas as its quite weird. Also, I wanted to know what are the differences between using these two methods and what could of happened why method one didn't work but method two did.