$id=$_REQUEST['id']; if($id == ""){ $id = "Home"; $ext = ".txt"; $path = "pages/"; $file = $_SERVER['/home/a7120106/public_html/'] . ($path . $id . $ext); $contents = file($file); $string = implode($contents); echo $string; } else{ $file = $_SERVER['/home/a7120106/public_html/'] . ($path . $id . $ext); $contents = file($file); $string = implode($contents); echo $string; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)