$fp = fsockopen ($domain, 80, $errno, $errstr, 30);
if (!$fp) {
echo "$errstr ($errno)<br>\n";
} else {
fputs ($fp, "GET / HTTP/1.0\r\nHost: $domain\r\n\r\n");
while (!feof($fp)) {
$file = fgets ($fp,128000);
preg_match('/\<b>Description: (.*)/im',$file,$title);
$description = $title[1];
echo $description;
}
fclose ($fp);
}
If I do
echo $file;
I'll get the full source code of the page. If I do echo $description i only get </br> which was at the end of Description: how come it won't let me select multiple lines or for example everything after Description. I also tried
preg_match('/<b>Description: (.*)</tabe/im',$file,$title);
which is a few lines down but that didn't work either and just gave me a blank. Help is greatly appriciated. Thank you