How would I go about getting a PHP script to check an external site's page x for html tag x and return that data on the same server where the script is activated? So I mean
user enters target url
script checsk that url's home page in background for tag x
Returns that tag plus content between opening and closing tag to page b (result page) on the same server.
Are there scripts for that out there? Any advice on how to build one?