You are here: Re: $_SERVER not working « PHP Programming Language « IT news, forums, messages
Re: $_SERVER not working

Posted by Jerry Stuckle on 11/01/16 11:50

Puneet wrote:
> Thanx Bent... That helped..
> I rewrote the code as :-
> print "Host port is :". $_SERVER ['SERVER_PORT'] ;
>
> and it worked...
>
> There has to be a space between SERVER and [.. otherwise PHP throws an
> exception.
>
>
Not on any system I've ever used. The space is optional.

However - if you don't have the curly braces around it, I can see where PHP
might get confused.


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

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

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