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/

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

Reply via email to