Make sure though that when you use it to take out the lines
echo '<br><br><a href="linksdb.php?show=source">Click here to see source code</a><br><br>';
++++++++++++++++
if (isset($_GET['show']) AND ($_GET['show'] == "source")){
echo DisplaySourceCode();
}
+++++++++++++++++++++++
function DisplaySourceCode()
{
$h = file_get_contents("linksdb.php");
return "<br><br><textarea cols=60 rows= 20>$h</textarea>";
}
Other wise visitors will be able to get your database username and password.
IcI
|