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