On 13 Sep 2001 [EMAIL PROTECTED] wrote: > suggestions > 1. any variables start with $_ and $PHP_ and also $HTTP_ > should be always global > no need to use such as > global $PHP_SELF; > > if possible, set_global_all(true); makes variables scope just like c/java > do I think this is a bad idea, it is against the way PHP works... > > 2. if we access $PHP_POST_VARS['...'] and it's not set > should trigger an special warnning, not a normal warnning > cause it's not that variables we can initize > so that, we can easily turn off the special warnning without ignoring the > other normal warnning. In PHP 4.0.7 and higher you can se $_POST, $_GET, $_SESSION and $_COOKIE for this, they are global. > > 3. we don't like > $a = 0; > to initize an variable, we like > int $a; // it's auto initized into 0 > or > int $a=1234; This is not in the nature of PHP, variables are loosely typed regards, Derick Rethans --------------------------------------------------------------------- PHP: Scripting the Web - www.php.net - [EMAIL PROTECTED] SRM: Site Resource Manager - www.vl-srm.net --------------------------------------------------------------------- -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]