I'm just using yahoo as an example. There's a code in their html that goes like this
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http
What i'm trying to do is just get PICS-Label alone without the rest. So what I did was.
$fp = fopen ("http://www.yahoo.com", "r");
$file = fread($fp, 1000000);
$initial = strpos($file, "<meta http-equiv=\"");
$final = strpos($file, "\" content='(PICS-1.1 \"http");
$testing = substr($file, $initial, $final);
echo "$testing";
fclose($fp);
however once i finished it did a output of
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l
any ideas? thank you