Using php, I'm trying to create a script which will grab all the contents of a url then search within it for a string and echo if the match was found.
Say I have a url (http://www.mydomain.com) and within this url, there is a string stored in it which is also 'http://www.mydomain.com'. I want to grab the contents of http://www.mydomain.com and check if 'http://www.mydomain.com' is present in its source code or not.