/ Published in: PHP
This is to compliment my hostname class, and is provided as a demonstration on how to write a simple script to update the database for a traveling IP. See http://snipplr.com/view/54138/hostname-class/ for more information
Expand |
Embed | Plain Text
<?php //******INSERT PASSWORD PROTECTION HERE****** // //You should not leave this script unprotected //as anyone who runs this as-is could change //the IP and gain access require_once($_SERVER['DOCUMENT_ROOT'].'/hostname.class.php'); $hostname = new hostname(); $hostname->putCache($newdnsip); if ($hostname->lastError == ''): else: endif; ?>
You need to login to post a comment.
