Results 1 to 3 of 3

Thread: PHP SSI on IIS

  1. #1

    Thread Starter
    Addicted Member TheGoldenShogun's Avatar
    Join Date
    Mar 2001
    Location
    VA/MD... anywhere around the beltway
    Posts
    236

    PHP SSI on IIS

    Acronyms all over for this one... Ok this may be a tricky one gurus. The company that did development on our site did it with php but php as an SSI. So their code looks like this.

    <%
    echo "Print this line";
    %>

    and the file saves as whatever.htm. We're trying to migrate to a windows IIS server now and I dont want to have to rescript these pages. I've gotten as far as setting up the PHP to work as a SSI on IIS but you have to surround your PHP code like this.

    <?
    echo "Print this line";
    ?>

    How would I go about setting up an IIS server to run PHP code surrounded by the <% %>.. its not a big deal, I know I could go through and just replace "<%" with "<?", its more of a.. a I just want to know what they did type of post. Thanks for the feedback

  2. #2
    Frenzied Member
    Join Date
    Nov 1999
    Posts
    1,337
    there is a setting in the ini file of php that lets you use asp tags. that might be where they got them. also i tlooks like the server was setup to parse htm files as php. this also can be setup but not recommended.

  3. #3
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    If you decide to change the tags, remember that the PHP developers strongly encourage you to write
    <?php
    not only
    <?
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width