Brian "bojo" Jones wrote:
Is it possible to make IIS6 render .phps files as php-source? I haven't
been able to locate any information on this, and am beginning to believe
it's not possible.
-- Brian 'bojo' Jones
Consider writing a "hiliter.php" script to which you can pass filenames
to via an A HREF tag from a dirctory listing:
<a href="hiliter.php?f=filename.php">hiliter</a>
hiliter.php might contain something like:
$f = array_key_exists('f', $_GET)
? strip_tags(stripslashes(trim($_GET['f'])))
: '';
if(!empty($f)){
if(file_exists($f)){
$string = file_get_contents($f);
highlight_string($string);
}else{
echo '<p>unable to locate '.$f.'</p>';
}
}elseif(empty($f)){
echo "\n".'<p>Filename is empty</p>';
}