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.

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

Reply via email to