benslayton
02-03-2007, 12:41 AM
<?php
if ($_GET['file'])
{
highlight_file($_SERVER['SCRIPT_FILENAME']);
exit();
}
?>
How do i make it where i input the filename into the source instead of the page i am on?
Edit>
when i go to server.com/source.php?file=filename.php
This is how I want it not like when i go to server.com/source.php?file=1 and it shows the current page.
if ($_GET['file'])
{
highlight_file($_SERVER['SCRIPT_FILENAME']);
exit();
}
?>
How do i make it where i input the filename into the source instead of the page i am on?
Edit>
when i go to server.com/source.php?file=filename.php
This is how I want it not like when i go to server.com/source.php?file=1 and it shows the current page.