Posted by Jerry Stuckle on 11/10/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]
|