Thanks for the suggestions. with some minor adjustments I was able to get most of it running. The scriot I used was as follows:
<?PHP
//This portion of the script reads out and returns the server's IP using //getenv("SERVER_NAME");
//This is the line that gives you the updated IP address as long as you change it in the apache config every time a change comes through
//The change in Apache is necessary because the pseudo-server operates from behind a router and the getenv() function only reads back the local IP
$display = getenv("SERVER_NAME");
getenv("SERVER_NAME");
//This portion of the script writes the IP change to a data file
$IP = "IP.dat";
$fp = fopen($IP, "r");
$IPChange = $display;
$IPchange = (int) fread($fp, 20);
fclose($fp);
$IPChange++;
$fp = fopen($IP, "w");
fwrite($fp, $IPChange);
fclose($fp);
//This line echos back the changed IP address
echo ("$display");
//I could then have the script upload the .dat or .txt file containg the new IP address to a stable external server
$fp = fopen("ftp://ExternalServer/IP.dat", "w");
fwrite($fp, "$IPChange");
fclose($fp);
//Then include that script and call the function in the form script on the other //server
//Now this sounds easy enough, but the problem is that the external server is //not running PHP!!!!
?>
So I am thinking that I should simply change the script so that is creates a HTML header file (instead of a .dat file) that is uniform on all the external pages and then have the script ftp the changed header file to all the external pages. But this seems rather redundant.
Any suggestions?