PDA

Click to See Complete Forum and Search --> : PHP SSI on IIS


TheGoldenShogun
May 8th, 2003, 01:38 PM
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

phpman
May 9th, 2003, 09:39 AM
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.

CornedBee
May 9th, 2003, 04:28 PM
If you decide to change the tags, remember that the PHP developers strongly encourage you to write
<?php
not only
<?