Another question: Here's my code atm:
$fp = fopen("https://********", 'r', false, $context);
fpassthru($fp);
fclose($fp);
$tmp = count_values($fp);
$cnt = $tmp[typelabel];
echo $cnt;
I want this code to count the number of times the word 'typelabel' appears in the variable $fp. I believe the count function only works on arrays, so any ideas? Also, would this work if I didnt print out the page contents (if i removed fpassthru?) Thanks