Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #7759

Re: Old version trouble with $_SERVER variables?

From "M. Strobel" <sorry_no_mail_here@nowhere.dee>
Newsgroups comp.lang.php
Subject Re: Old version trouble with $_SERVER variables?
Date 2012-12-10 21:55 +0100
Message-ID <ain0iqFel0gU1@mid.uni-berlin.de> (permalink)
References <611eeace-68f0-48b1-9503-d1911378a427@a15g2000vbf.googlegroups.com>

Show all headers | View raw


Am 10.12.2012 20:05, schrieb C:
> What is causing the $host, $realhost and $referer variables to be
> blank?
> 
> <?php
> 
> global $host;
> 
> $date = date("F jS Y, h:iA");
> 
> $host=@gethostbyaddr($_SERVER['REMOTE_ADDR']);

You should not suppress error messages when you are trying to find an error.

/Str.

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Old version trouble with $_SERVER variables? C <wrong.address.1@gmail.com> - 2012-12-10 11:05 -0800
  Re: Old version trouble with $_SERVER variables? Salvatore <sal@yojimbo.hack.invalid> - 2012-12-10 20:37 +0000
    Re: Old version trouble with $_SERVER variables? The Natural Philosopher <tnp@invalid.invalid> - 2012-12-10 21:03 +0000
  Re: Old version trouble with $_SERVER variables? "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-12-10 21:55 +0100
  Re: Old version trouble with $_SERVER variables? Gregor Kofler <usenet@gregorkofler.com> - 2012-12-11 00:41 +0100

csiph-web