|
Posted by Disco Octopus on 11/16/05 08:29
Disco Octopus wrote:
> Hi,
>
> Does anyone know if there is a way to get something equivilent to this...
>
> AddType application/x-httpd-php-source .phps
>
> ... to work for IIS?
>
> Thanks
After some more looking about, I dont think there is a way.
However, for those of you who want something similar...
This is what I came up with....
In your *.php files (maybe not all of them), do this...
include showme.php
then in showme.php do this...
<?php
if ($_GET['showme'] == 'yes'){
highlight_file($_SERVER["SCRIPT_FILENAME"]);
exit (0);
}
?>
then access the php files as http://example.com/myphpfile.php?showme=yes
.... and !viola!... you own phps equivilent.
simple, but did the job for what I wanted.
--
mmmmm, jerky : http://www.choicebeefjerky.com.au
dance with children in the rain
[Back to original message]
|