I want to load contents from external HTML sites via GET.
PHP:
<?php
$content = file_get_contents('template/' . $_GET['l'] . "/" + $_GET['n'] . ".html");
?>
So I want to call this page: (page root)/template/html/1.html
Now if I do so by adding the parameters within the URL (file.php?l=html&n=1), I get nothing displayed. Why is this?
+instead of.to concatenate your strings. Use.echo 'template/' . $_GET['l'] . "/" + $_GET['n'] . ".html"and see whether the path really is correct. Are you sure you are in the right directory?