Location: PHPKode > scripts > Dynamic FreeDNS IP Address Update Client > dynamicfreedns_1_1/urlchange.php
<HTML>
<HEAD>
<TITLE>Dynamic FreeDNS IP Address Updater - Choose to Use Router or External Script</TITLE></HEAD>
<BODY>
<H2>Dynamic FreeDNS IP Address Updater - IP Address Gathering Method Setting</H2>

<FORM action="url.php" method="POST">
  If DynamicFreeDNS is set to use the included script, &quot;getmyip.php&quot; to retrieve the internet protocol address then it must be specified here for it to work properly.  Please specify the URL where &quot;getmyip.php&quot; is located.  (example: http://domain.tld/ipupdater/getmyip.php)

  <TABLE><TR><TD>URL Where &quot;getmyip.php&quot; is Located:  </TD><TD>
<INPUT type="text" name="url" size="40" maxlength="500"></TD></TR></TABLE>
<INPUT type="submit" value="Update URL"></FORM>


<?php
include "dbconnect.php";
$sql = mysql_query("SELECT `yn` FROM `router`")
or die(mysql_error());

while ($userouter = mysql_fetch_array($sql))
{

if ($userouter[yn] ="1") {

$url = mysql_query("SELECT `getip` FROM `url`")
or die(mysql_error());

while ($urlgetip = mysql_fetch_array($url)) {

echo "Dynamic FreeDNS is currently set to get the server's i.p. address from an external source.  The URL where Dynamic FreeDNS searches for the script, &quot;getmyip.php&quot; is set to: ".$urlgetip[getip] ;
} }
else {


echo "Dynamic FreeDNS is currently configured to use the router for determining the server's internet protocol address.  To set it to use the URL specified, configure Dynamic FreeDNS to use the router for gathering the i.p. address.";

}
}
include "closedb.php";

include "footer.php";
?>
Return current item: Dynamic FreeDNS IP Address Update Client