Welcome Guest, Not a member yet? Register   Sign In
Adherence To CI Style Guide
#1

[eluser]zippy[/eluser]
'short_open_tags' suck.

I'm generally bemused - but mostly dismayed - by the ongoing failure of PHP coders of all ages and persuasions to understand the reason why they should avoid using short_open_tags in their code.

From the CI 1.7 Style Guide:

'Always use full PHP opening tags, in case a server does not have short_open_tag enabled.'

'..in case..?' Uh?

What PHP coder/developer doesn't understand that since v5, PHP disables short_open_tags by default? Or even why that is?

Clue: how do you embed '<?xml' in a template script when short_open_tags is enabled?

So much of the contributed code I've seen is riddled with this.

Tighten it up, guys. ;-)

Been a cold day here, feelin' miserable.


Messages In This Thread
Adherence To CI Style Guide - by El Forum - 12-06-2008, 12:43 PM
Adherence To CI Style Guide - by El Forum - 12-06-2008, 05:11 PM
Adherence To CI Style Guide - by El Forum - 12-06-2008, 07:05 PM
Adherence To CI Style Guide - by El Forum - 12-06-2008, 10:17 PM
Adherence To CI Style Guide - by El Forum - 12-10-2008, 11:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB