Jump to content

[SOLVED] Using <?php and <? in IIS


mbowling

Recommended Posts

Hi, I'm trying to use the shortcut <? to begin a php code block in IIS but I can't get it to work. It works fine in Apache.

 

This works:

<?php echo $color?>

 

But this doesn't work:

<? echo $color?>

 

I know that using <? is not the preferred way to begin a php code block but to satisfy my personal curiosity I would like to know how to make it work in IIS.

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/66543-solved-using/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.