You are here: Re: phps view for IIS « PHP Programming Language « IT news, forums, messages
Re: phps view for IIS

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация