<html>
<head>
</head>
<body>
<h2>TCP/IP, HTTP Connection for XML retrieval</h2>
<pre>
<?php
error_reporting 
(E_ALL);

$xmlBuffer file_get_contents("http://www.nws.noaa.gov/data/current_obs/KEWR.xml");

$bgn strpos($xmlBuffer"<temperature_string>") + strlen("<temperature_string>");
$end strpos($xmlBuffer"</temperature_string>");

$temperature substr($xmlBuffer,$bgn,$end-$bgn);
echo 
"<h1>$temperature</h1>";


?>