Daniel already answerd regarding your error, but...
... 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 $hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']);
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php