A friend told me that I shouldn't use PHP include for, let's say templating header and footer on the page, he said it's a security risk and that I should use a template engine like Twig. Does it really pose a security concern? To me it looks almost like the same thing.
Include in PHP:
<? include("header.php"); ?>
And Include using Twig:
{% include 'header.html' %}
JavaScript is my main language and I got into PHP fairly recently, and I'm loving it so far.
If someone could should some light on this dilemma I'd be most grateful!