Re: Searching remote web sites for content
| From: | Joseph Crawford | Date: | Sat, 22 Oct 2005 15:22:51 +0000 |
| Subject: | Re: Searching remote web sites for content | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-40535@lists.php.net to get a copy of this message | ||
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