Re: coding standards

From: Date: Sun, 19 Aug 2001 20:51:40 +0000
Subject: Re: coding standards
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-63421@lists.php.net to get a copy of this message
> - Is declaring all variables a good idea - so theres no unassigned > variables hanging around ? (no warnings produced when error reporting > set to E_ALL) You mean INITIALIZING. There are no variable declarations in PHP. And, yes, it's a good idea so you're never surprised by a variable that you end up using twice. > - Naming of include files - .inc or .php ? > - naming of class files .inc or .php ? Name them .inc, *AND* move them outside the web tree if you can++, *AND* configure Apache to NEVER, EVER serve up an .inc file in any way, shape, or form. ++ The scale and scope of your project may require so many .inc files with the same names that you need to place them in the same directory as the PHP files that use them. Just be sure Apache won't serve them up. -- WARNING richard@zend.com address is an endangered species -- Use ceo@l-i-e.com Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm

« previous php.general (#63421) next »