Monroe Posted April 10, 2006 Share Posted April 10, 2006 PHP version 5.1.2 (pecl-5.1.2 also) mysql version 5.0.18 Server OS: Server 2003 IIS version 6.0When I try to run php files that start with <? they don't work but if I use <?php they work. If I try a file that starts with <? as soon as it hits a > in the code it begins to print on the screen untill it hits another <...> then prints again. It is like it is acting as html tags or something. Any ideas? Quote Link to comment https://forums.phpfreaks.com/topic/7066--/ Share on other sites More sharing options...
ToonMariner Posted April 10, 2006 Share Posted April 10, 2006 This is a setting in the php.ini file that allows you to choose which flags identify php.It is considered [b]good[/b] practice to use <?php and ignore using anything else so if you can just use <?php. Quote Link to comment https://forums.phpfreaks.com/topic/7066--/#findComment-25675 Share on other sites More sharing options...
Monroe Posted April 11, 2006 Author Share Posted April 11, 2006 I know but I am trying to use existing scripts on my webiste that are written with <? thanks for the reponse. Quote Link to comment https://forums.phpfreaks.com/topic/7066--/#findComment-25732 Share on other sites More sharing options...
wildteen88 Posted April 11, 2006 Share Posted April 11, 2006 You will need to turn on the [b]short_open_tag[/b] directive in the php.ini file.Once you have switched it on you will need to save the php.ini file and then restart IIS. You should now be able to use short open tags <? ?> aswell as <?php ?> Quote Link to comment https://forums.phpfreaks.com/topic/7066--/#findComment-25757 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.