Posted by SocketE on 08/11/05 17:07
thanks!!
;)
"Kimmo Laine" <eternal.erectionN05P@Mgmail.com> escribiσ en el mensaje
news:soEKe.5675$jU.1987@reader1.news.jippii.net...
> "SocketE" <malice@mizer.jp> wrote in message
> news:42fa30db$1_2@nova.entelchile.net...
>> when I set
>> $_SERVER ['PHP_AUTH_USER'] = $User;
>> in the main page,
>>
>> in the next page says:
>> Notice: Undefined index: PHP_AUTH_USER
>> with this
>> echo $_SERVER['PHP_AUTH_USER'];
>>
>> I'm using apache + php4
>>
>> something wrong??
>
>
> Yes. You can't write anything to $_SERVER and expect it appear on the next
> page. You use $_SESSION and $_COOKIE for that. $_SERVER is generated by
> php engine each time a page is loaded, it's not something you store data
> in, only the php does.
>
> --
> Welcome to Usenet! Please leave tolerance, understanding
> and intelligence at the door. They aren't welcome here.
> eternal piste erection miuku gmail piste com
>
[Back to original message]
|