I wanted to know if it is safe to use includes on pages.
I read using allow_url_include is un-safe, I was using it before with absolute paths, but worked out I could bypass the problem with relative paths, but is this really safe?
Also would something like this really work?
<?php
$header= preg_replace('/[^a-zA-Z0-9_]/', '', $_GET['header']);
include "http://mysite.co.uk/directory/$header.php";
?>