Re[2]: [PHP-DOC] Question about using <varname>

From: Date: Wed, 26 May 2004 20:39:09 +0000
Subject: Re[2]: [PHP-DOC] Question about using <varname>
References: 1 2  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969361030@lists.php.net to get a copy of this message
Good day, Gabor. >> Can you explain me, why we should write >> <varname>PHP_AUTH_USER</varname> >> without symbol '$' and <varname>$HTTP_SERVER_VARS</varname> with it? GH> If you use the $ symbol, then it suggest that the global variable usage GH> is suggested. PHP_AUTH_USER is supposed to be in the _SERVER array if I GH> remember correctly, and if you write it with $, then you promote the GH> usage of register_globals = on, which is not right. $HTTP_SERVER_VARS is GH> the only way to access the ther variable, so it is fine with the dollar. So, next part of PHP-manual: For example, <varname>$userfile_name</varname> will equal <varname>$_FILES['userfile']['name']</varname>, <varname>$userfile_type</varname> will equal <varname>$_FILES['userfile']['type']</varname>, etc. I should change to: For example, <varname>userfile_name</varname> will equal <varname>$_FILES['userfile']['name']</varname>, <varname>userfile_type</varname> will equal <varname>$_FILES['userfile']['type']</varname>, etc. Am i shure? -- С уважением, Alexander mailto:mail@young.org.ua

« previous php.doc (#969361030) next »