Page 1 of 1

<? not working in latest PHP version ?

Posted: Fri Jun 09, 2006 4:04 pm
by anjanesh
Hi

When did PHP start not allowing <? tags but only <?php ?
I was using PHP 5.0.x and it was all fine when many of my scripts failed because after updating tp PHP 5.1.4.

Posted: Fri Jun 09, 2006 4:09 pm
by MrPotatoes
it's your server.

just stop doing that

Posted: Fri Jun 09, 2006 4:09 pm
by feyd
Short tags have been turned off and are being removed.

Re: <? not working in latest PHP version ?

Posted: Fri Jun 09, 2006 4:49 pm
by RobertGonzalez
anjanesh wrote:Hi

When did PHP start not allowing <? tags but only <?php ?
I was using PHP 5.0.x and it was all fine when many of my scripts failed because after updating tp PHP 5.1.4.
The topic of PHP 'short tags' is touched on rather regularly around here. The question invariably comes up... What happens if PHP removes support for short tags?

Now you know. I think this applies (in like manner) to using register globals as well.

Posted: Fri Jun 09, 2006 5:35 pm
by daedalus__
/agree

Posted: Fri Jun 09, 2006 7:31 pm
by Benjamin
Short tags have always just been to Microsoftish (think asp) for me anyway. I've never used them.

Posted: Fri Jun 09, 2006 11:09 pm
by anjanesh
Ah..that explains it - I previously had PHP 5.0.2 (or 5.1.2 Im not sure) and I didnt realize I had to make so many Find-and-Replace <? to <?php.

Thanks