| 
 Posted by Puneet on 06/16/04 11:50 
Nope.. If i use your code.. then I am getting this.. 
 
PHP Notice: Undefined index: HTTP_HOST in C:\Program Files\Apache 
Group\Apache2\htdocs\_debug_tmp.php on line 5 
 
 
If i use 
Print "Host is : $_SERVER ['HTTP_HOST']"; 
 
The I am getting.. 
Host is : Array ['HTTP_HOST'] 
 
What's wrong... 
Please help... 
 
Bent Stigsen wrote: 
> Puneet wrote: 
> [snip] 
> > All the uper globals are not working. They 
> > just come back with e.g Array ['HTTP_HOST']... Can any body help? 
> 
> Sound like you need some curly brackets: 
>  
> echo "{$_SERVER['HTTP_HOST']}"; 
>  
> --  
> /Bent
 
[Back to original message] 
 |