Posted by Rik on 06/10/06 11:21
..:J:. wrote:
>>> foreach($_SERVER as $key => $value){
>>> print('$_SERVER['.$key.']' = '.$value.'<br />');
>>> }
>>
>> ...
>> print('$_SERVER['.$key.'] = '.$value.'<br />');
>> ...
>>
>> -Lost
> If I write this PHP:
> <?php print('$_SERVER['.$key.'] = '.$value.'<br />'); ?>"
> I get this in return on the webpage:
> $_SERVER[] =
>
> What have I done wrong ?
You forgot the foreach loop.
foreach($_SERVER as $key => $value){
print('$_SERVER['.$key.'] = '.$value.'<br />');
}
Grtz,
--
Rik Wasmus
Navigation:
[Reply to this message]
|