View Single Post
  #24  
Old 05-29-2005, 12:50 PM
IcIshoot is offline IcIshoot

Join Date: Mar 2004
Location: Farmington Hills, MI
Posts: 1,473

Send a message via AIM to IcIshoot Send a message via MSN to IcIshoot Send a message via Yahoo to IcIshoot
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
Reply With Quote