How do I grab a certain word from a webpage?
For example
That will assign the text to $contents, but then how do i find the text I want?
I know its seperated uniquely on the page by a <span class="blah">textiwant</span>
Please help
Thanks
For example
PHP Code:
$handle = fopen("http://www.blah.com", "rb");
$contents = '';
while (!feof($handle)) {
$contents .= fread($handle, 8192);
}
fclose($handle);
I know its seperated uniquely on the page by a <span class="blah">textiwant</span>
Please help
Thanks



I think you misunderstood. He does not know what 'textiwant' is nor does he want to replace it. He wants to find what 'textiwant' is.
Comment