Html_header_show()

cfapress wrote on Friday, February 29, 2008:

What is this that I’m finding all over the place in the lastest check out from CVS?

<? html_header_show();?>

It looks like it wants to be a PHP block of code but not defined as such. After some ‘grepping’ I found the function here:
library/translation.inc.php

Since the code seems to be running OK without the opening PHP block of “<?php” I’m no too worried but shouldn’t this error be corrected to be a syntactically correct?

Jason

sunsetsystems wrote on Friday, February 29, 2008:

"<?" is a "short tag" which most PHP installations support, but this is not guaranteed and so we should be using "<?php" instead.

Rod
www.sunsetsystems.com

lemonsoftwarero wrote on Friday, March 07, 2008:

Even there are little problems using the short form, it’s more ‘standard’ the long version usage, so here I agree with Rod. Unfortunately, the programmer who did this wasn’t of the same opinion (no, I wasn’t me, I just commit them :)).

The big idea is to replace maybe at some point in time, the page header generation with a function (like this), who will generate the needed elements. For the moment, this function tries to resolve the encoding issue for the displayed characters into the html pages.

Best.