Home > Archive > PHP Language > August 2005 > $_SERVER problem
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| SocketE 2005-08-11, 3:59 am |
| 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??
thanks!
| |
| Kimmo Laine 2005-08-11, 3:59 am |
| "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
| |
| SocketE 2005-08-12, 4:00 am |
| 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...
>
>
> 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
>
|
|
|
|
|