phps view for IIS

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Disco Octopus

    phps view for IIS

    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

    --
    a beef jerky web site : http://www.choicebeefjerky.com.au
    not a beef jerky web site : http://mycoolfish.com/vote.cmks
    dont pick your nose if it is sore
  • Disco Octopus

    #2
    Re: phps view for IIS

    Disco Octopus wrote:
    [color=blue]
    > 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[/color]

    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_FILENAM E"]);
    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

    Comment

    • Toby Inkster

      #3
      Re: phps view for IIS

      Disco Octopus wrote:
      [color=blue]
      > 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.[/color]

      And combine that with isapi_rewrite to rewrite this:



      to this:



      --
      Toby A Inkster BSc (Hons) ARCS
      Contact Me ~ http://tobyinkster.co.uk/contact

      Comment

      • Disco Octopus

        #4
        Re: phps view for IIS

        Toby Inkster wrote:
        [color=blue]
        > Disco Octopus wrote:
        >[color=green]
        >> 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.[/color]
        >
        > And combine that with isapi_rewrite to rewrite this:
        >
        > http://example.com/myphpfile.phps
        >
        > to this:
        >
        > http://example.com/myphpfile.php?showme=yes[/color]

        indeed. Looks like a good idea.

        .... any starter suggestions on how to implement this?
        (and possibly some finisher suggestions to ;) )


        --
        talk to the teacher now and then about something other than the subject
        a beef jerky web site : http://www.choicebeefjerky.com.au
        teach the kids how to ride a skate board, then learn yourself

        Comment

        Working...