* * * * An ERA Office * * * * * * - SomeCity, ST * * * *
* * * * websiteofthisoffice.com * * * *
* * * * You should modify this script to include your standard site header * * and footer information as appropriate. * * * * Advanced Users: * * For users who wish to use this office information on their site * * in different ways, or wish to radically customize the display, * * office information is also available in the XML format. To access * * this information in XML format, make a GET or POST request to the * * following URL: * * * * http://www.era.com/ad/serveurldriver.php?c=009950&o=0001&p=68b1924c901d0d1aac8741d1ff8ac9ad&xml=true * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ // This section defines constansts provided by ERA. This section was prepopulated when this package // was downloaded. $strBaseURL = "http://www.era.com/ad/serveurldriver.php"; $strCompanyID = "009950"; $strOfficeID = "0001"; $strPassword = "68b1924c901d0d1aac8741d1ff8ac9ad"; // Build URL $strURL = $strBaseURL ."?c=". $strCompanyID ."&p=". $strPassword ."&o=". $strOfficeID; // Connect to ERA URLDriver Server $handle = @fopen($strURL, "r"); if ($handle !== false) { // Retrieve Data $contents = ''; while (!feof($handle)) { $contents .= fread($handle, 8192); } fclose($handle); echo $contents; } ?>