I want to get information from this link
index.php?site=server?id=1
when I try to reach id=1 my system crashed.
<?php
$site="";
$site=$_GET['site'];
if(!isset($site)) $site="news";
$invalide = array('\\','/','/\/',':','.');
$site = str_replace($invalide,' ',$site);
if(!file_exists($site.".php")) $site = "error";
include($site.".php");
?>
Can someone help me upgrade this system to get data second segment?