Code: Select all
function getpage($conn, $page)
{
$fp = fsockopen($conn, 80, $errno, $errstr, 30);
if (!$fp) {
echo "$errstr ($errno)<br />\n";
} else {
$out = "GET ".$page." HTTP/1.1\r\n";
$out .= "Host: ".$conn."\r\n";
$out .= "Content-type: text/html\r\n";
$out .= "Connection: Close\r\n\r\n";
fwrite($fp, $out);
while (!feof($fp))
{
$buffer = stream_get_line($fp, 1024, "\n");
echo $buffer;
}for example part of the original source looks like
Code: Select all
class="tBox">24but when i look at it using the above function
Code: Select all
class="tB
C
ox"> 2
5FF4
4 thanks
kyle