"; $includeContent = $_SERVER["DOCUMENT_ROOT"]."/2012/".$id1.".php";//?page=".$rewrite; //echo $includeContent ; if (!file_exists($includeContent)) { $includeContent = $_SERVER["DOCUMENT_ROOT"]."/2012/404.php"; echo "file does not exists"; } ob_start(); include $includeContent; $contents = ob_get_contents(); ob_end_clean(); echo $contents; ?>