$f = @fsockopen("armory.worldofwarcraft.com", 80, $errno, $errstr, 30); if (!$f) { echo "Could not connect to the armory. Detailed information: $errstr ($errno)
\n"; } else { $send = "GET /guild-info.xml?r=". urlencode($Server) ."&n=". urlencode($GuildName) ."&p=" .urlencode($Page). " HTTP/1.0\r\n"; $send .= "Host: armory.worldofwarcraft.com\r\n"; $send .= "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.2) Gecko/20070219 Firefox/2.0.0.2\r\n"; $send .= "Connection: Close\r\n\r\n"; fwrite($f, $send);