" . "Hostname: " . $hostname . "
" . "Last update: " . $dateandtime; echo $writeout; if ($save_to_file == "TRUE") { $ipFileHandler = fopen($filename, 'w') or die("
ERROR CREATING FILE. CHECK DIRECTORY PERMISSIONS
"); fwrite($ipFileHandler, "IP Address: " . $address . "\n" . "Hostname: " . $hostname . "\n" . "Last update: " . $dateandtime); fclose($ipFileHandler); } ?>