I want to extract content of a website found between some specific html tags.How can i achieve that with php.
For e.g consider viewing google.com soure code.I want to extract data with <title> </title> tags and store it in a variable(its "Google" in this case)
Bascially script navigates to google.com and then extract data within the <title> </title> tags. I though of using fopen and fread but this would take all webpage content and isn't efficient.
Any better solution