Re: Help with an error...

From: Date: Thu, 24 Jul 2008 17:49:06 +0000
Subject: Re: Help with an error...
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-277253@lists.php.net to get a copy of this message
On 24 Jul 2008, at 18:43, Thorsten Suckow-Homberg wrote:
Daniel already answerd regarding your error, but...
<?php $hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']);
... if you call the script via cron I'm pretty sure $_SERVER won't be available since the script is not used in a running webserver process context.
Not entirely correct. $_SERVER will be available, but parts of it will not such as the REMOTE_ADDR since there is not remote entity. -Stut -- http://stut.net/

« previous php.general (#277253) next »