<html>
<head>
<style>.code{
background-color: Silver;
padding: 4px;
margin: 10px;
}
</style>
</head>
<body>
<?php
function download_page($url,$user_agent='Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)')
{
$ch = curl_init();
curl_setopt ($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_USERAGENT, $user_agent);
curl_setopt ($ch, CURLOPT_HEADER, 0);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_REFERER, 'http://www.itamer.com/');
$result = curl_exec ($ch);
curl_close ($ch);
return $result;
}//function download_page($url,$user_agent)
$page = download_page('http://www.scriptdd.com/software/stop_socket.php');
$bits = explode('<BODY>', $page);
$bites = explode('</BODY>', $bits[1]);
echo "<div class='code'><code>{$bites[0]}</div></code><hr>";
highlight_file('socket.php');
?>
</body>
</html>