# cat.php "; $fullpath = $path . "/" . $req; if (is_file($fullpath) ) { $file = fopen($fullpath, "r"); if (!$file){ echo "Error opening the file"; } while (!feof($file)) { $zeile = fgets ($file); echo htmlentities($zeile, ENT_QUOTES); } fclose($file); exit; } else { echo $path . "/" . $req . " is not a valid file

"; } echo ""; ?>