Re: Finding HTML
| From: | Adam Voigt | Date: | Tue, 05 Nov 2002 17:22:52 +0000 |
| Subject: | Re: Finding HTML | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-122802@lists.php.net to get a copy of this message | ||
$f = fopen("$url_with_button","r");
$data = fread($f,1000000);
fclose($f);
if(substr_count($data,"$your_homepage_link") == 0)
mysql_query("DELETE FROM users WHERE thereurl = '$url_with_button';");
or something like that.
On Tue, 2002-11-05 at 12:20, Stephen wrote:
> I'm about to undergo a creation of a Link Exchange script for my site. One of the
> requirements is to have them have my button on their site in return for a button on mine. This is
> required and I don't want cheating. The only way I can think of doing this is checking their
> source code and making sure the code is still intact on their website about once a month. If not,
> then their button is removed from my site. Instead of doing this manually, I want to do it in PHP.
>
> This brings me to my question. How can I, without using FTP since I don't collect
> usernames or passwords, check their source code for my block of code? Then if it's not there,
> delete their entry from a table in MySQL? Any help would be great.
>
> Thanks,
> Stephen Craton
> http://www.melchior.us
>
> "Life is a gift from God. Wasting it is like destroying your favorite item you received
> from the person you love most." -- www.melchior.us