View Single Post
Old 2007-05-11, 03:18 PM   #4
virgohippy
Madness is like gravity. All it takes is a little... push.
 
virgohippy's Avatar
 
Join Date: Feb 2006
Location: California
Posts: 1,679
Damn, if no one else has anything... with PHP, I guess I'd start with something like this:

Code:
$file = file($url); // get file contents
if ( eregi("http://www.somedomain.com/some-page.htm", $file) ) { 
DO SOMETHING
} // if file has url
You can use it both ways. Regex in the eregi function would allow you to check for valid links, but my brain is too mushy to think about that right now.

I imagine that's not quite what you're looking for though.
__________________
~Warm and Fuzzy.
virgohippy is offline   Reply With Quote