For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > October 2005 > Re: [PHP-DB] Searching remote web sites for content









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PHP-DB] Searching remote web sites for content
Joseph Crawford

2005-10-22, 6:55 pm

you could probably use curl to grab the source for the page then use a regex
to see if your domain is found maybe something like

if(preg_match("/www\.domain\.com/is")) // match found
else // not found

dont quote me on the regex as i am not very good with regex, also you would
want a button in the admin area that you push to check and return the
results in a nice table. You would not want this check to run with every
page load as curl could be time consuming depending on the speed of the site
you are checking.


--
Joseph Crawford Jr.
Zend Certified Engineer
Codebowl Solutions, Inc.
1-802-671-2021
codebowl@gmail.com

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com