Checking Backlinks Exist On Web Page

Anyone know or done this?

I want to write hopefully a small script that can take an url and check that a string of txt exists on that page.

Thanks
D

Think I found something :

PHP backlink checker script - Akshay Jain

Ta