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
Help with what this does
Moderator: General Moderators
Re: Help with what this does
It's the same as
Somewhere there is a matching {.
Code: Select all
<?php } ?>Re: Help with what this does
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
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...?jackpf wrote: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
That's the case with my software lol... custom code written for specific clients, not redistributed code. Naturally this isn't the case with everybdycalifdon wrote: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...?jackpf wrote: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
Exactlycalifdon wrote: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...?jackpf wrote:Bit off topic...but why are you converting all short-tags? They can be pretty useful in certain cases...
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...