You are here: Re: $HTTP_SERVER_VARS['REQUEST_URI'] - help needed « All PHP « IT news, forums, messages
Re: $HTTP_SERVER_VARS['REQUEST_URI'] - help needed

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация