//main part of the file echo "Filename Or Url: "; if($filename) { //validation $filename != "/ect/passwd/" OR DIE("Your not allowed to veiw this code!"); //end validation @$contents = file_get_contents("$filename") OR DIE("No such file!"); //displays file or urls source code if all goes well echo "$contents"; } ?>