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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to