I am fairly new to PHP but I used what I know and it worked except for a strange problem, at the end of the echoed file it put the number 1, I have no clue why its doing this. I checked the HTML document and it didn't have the number one at the end so its the PHP doing it.
My code,
Code: Select all
<?php
$links = require_once('links.html');
echo "$links"
?>Is there a better way of doing this?