Forum Moderators: coopster

Message Too Old, No Replies

PHP doesn't recognie <? -- only -- <?php

         

one_mind

5:37 am on Jul 28, 2006 (gmt 0)

10+ Year Member



Hi,

I found a script that i run locally but my php installation doesn't recognize <? as the start of a script so i have to go through and change them all to <?php

Is there a way to make it accept <?

Thanks

dreamcatcher

5:54 am on Jul 28, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi one_mind,

You need to enable short tags in your PHP.ini file. Save and then re-boot the server.

dc

one_mind

6:44 am on Jul 28, 2006 (gmt 0)

10+ Year Member



Cool,

Thanks Dream :)

coopster

1:04 pm on Jul 28, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



That's the trouble with
short_open_tag
-- personally I never use them. Some related threads to help you make the decision about using them for yourself ...

HTACCESS code to turn short tags off? [webmasterworld.com]
<? vs <?php [webmasterworld.com]

one_mind

4:02 pm on Jul 28, 2006 (gmt 0)

10+ Year Member



Thanks Coopster,

I will only keep them on when using clients scripts that use short tags and i cant edit.