Re: What happend to _SERVER?
| From: | Hannes Magnusson | Date: | Sat, 14 Aug 2004 23:15:43 +0000 |
| Subject: | Re: What happend to _SERVER? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-193847@lists.php.net to get a copy of this message | ||
try to alter your ini file;
ini_set ( "variables_order", "EGPCS" );
var_dump ( $_SERVER );
- Hannes
On Sat, 14 Aug 2004 15:26:46 -0700
php@atoka-software.com (Allen Wayne Best) wrote:
> Hello:
>
> I am having a spot of difficulty with PHP. I cannot get php to return the
> values of _SERVER. Here is a test php file.
>
> <?php
> $handle = fopen( "/tmp/test.txt" , "w" ) ;
> fwrite( $handle, "REMOTE_ADDR: " ) ;
> fwrite( $handle, $_SERVER["REMOTE_ADDR"] ) ;
> fwrite( $handle, "\n\n" ) ;
> fwrite( $handle, "HTTP_HOST: " ) ;
> fwrite( $handle, $_SERVER["HTTP_HOST"] ) ;
> fwrite( $handle, "\n\n" ) ;
> fwrite( $handle, "SERVER_NAME: " ) ;
> fwrite( $handle, $_SERVER["SERVER_NAME"] ) ;
> fwrite( $handle, "\n\n" ) ;
> fwrite( $handle, "SERVER_SOFTWARE: " ) ;
> fwrite( $handle, $_SERVER["SERVER_SOFTWARE"] ) ;
> fwrite( $handle, "\n\n" ) ;
> phpinfo() ;
> ?>
>
> the output in /tmp/test.txt is:
> REMOTE_ADDR:
>
> HTTP_HOST:
>
> SERVER_NAME:
>
> SERVER_SOFTWARE:
>
>
> and the browser shows a "blank" window (mozilla and konqueror!).
>
> Any suggestions are greatly appreciated.
>
> --
> regards,
> allen wayne best, esq
> "your friendly neighborhood rambler owner"
> "my rambler will go from 0 to 105"
> Current date: 1:21:15::226:2004
>
> "I went to a job interview the other day, the guy asked me if I had any
> questions , I said yes, just one, if you're in a car traveling at the
> speed of light and you turn your headlights on, does anything happen?
>
> He said he couldn't answer that, I told him sorry, but I couldn't work
> for him then.
> -- Steven Wright