Re: [Grouptime-developers] The pre-FINAL of Coding Standards
Status: Pre-Alpha
Brought to you by:
sauanimal
|
From: Hansen <az...@ma...> - 2002-09-09 07:21:11
|
> Hi! > > >>I want to comment: >>- Point 2.1, "the start and the end tags of the PHP script >>must be <? and ?>. Do not use <?php tags." Why? I think <?php >>is more standard. > > > Actually there isn't any constructive reasons, I just like <? more than > <?php. It's more elegant if you like :) > I'm quote from PEAR coding standard: "Always use <?php ?> to delimit PHP code, not the <? ?> shorthand. This is required for PEAR compliance and is also the most portable way to include PHP code on differing operating systems and setups." (http://pear.php.net/manual/en/standards.tags.php) But, if we agree with <? ?> that's fine, because I usually use that too :) Other suggestion: When we need to unconditional including files we must use require_once and when conditional including files we use include_once. This will ensure that files are included only once. (from PEAR coding standard too :) ) Regards Hansen |