Working on a project, one of the webpages will display a list of people (specifically, a list of people from a graduation class that haven\'t been located yet). Instead of m
That's the code I use:
$file ".htmlspecialchars(file_get_contents("$path/$file"))." "; //display echo $content; ?>
".htmlspecialchars(file_get_contents("$path/$file"))."
Keep in mind that if the user can modify $path or $file (for example via $_GET or $_POST), he/she will be able to see all your source files (danger!)