Page 1 of 1

Help with what this does

Posted: Mon Sep 14, 2009 3:18 pm
by veldthui
I am going through and converting some php code to remove the short version of <? and changing to <?php. Most are <?= which I know is replaced with <?php echo but I have some which are just as <? } ?>. This is amongst the HTML code. Any idea what this actually does?

--
John Veldthuis

Re: Help with what this does

Posted: Mon Sep 14, 2009 3:32 pm
by requinix
It's the same as

Code: Select all

<?php } ?>
Somewhere there is a matching {.

Re: Help with what this does

Posted: Mon Sep 14, 2009 4:02 pm
by jackpf
Bit off topic...but why are you converting all short-tags? They can be pretty useful in certain cases...

Re: Help with what this does

Posted: Mon Sep 14, 2009 5:46 pm
by califdon
jackpf wrote:Bit off topic...but why are you converting all short-tags? They can be pretty useful in certain cases...
Those certain cases being when your server is configured for short tags and you know with absolute certainty that your scripts will never, ever run on any other server...? :wink:

Re: Help with what this does

Posted: Mon Sep 14, 2009 5:48 pm
by Mirge
califdon wrote:
jackpf wrote:Bit off topic...but why are you converting all short-tags? They can be pretty useful in certain cases...
Those certain cases being when your server is configured for short tags and you know with absolute certainty that your scripts will never, ever run on any other server...? :wink:
That's the case with my software lol... custom code written for specific clients, not redistributed code. Naturally this isn't the case with everybdy :)

Re: Help with what this does

Posted: Mon Sep 14, 2009 5:57 pm
by jackpf
califdon wrote:
jackpf wrote:Bit off topic...but why are you converting all short-tags? They can be pretty useful in certain cases...
Those certain cases being when your server is configured for short tags and you know with absolute certainty that your scripts will never, ever run on any other server...? :wink:
Exactly :P

But most hosting companys' servers have them turned on anyways...
And if it's your own code, then HOPEFULLY you'll be the only one running it. God forbid someone else manages to...