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:[EMAIL PROTECTED]

Reply via email to