Well, you can turn your PHP script into a shell script and run it once a
month using cron -- that's of course assuming you're using UNIX. In
Windows, you can use the scheduler.


Marco
-- 
------------
php|architect - The magazine for PHP Professionals
The first monthly worldwide magazine dedicated to PHP programmers

Come visit us at http://www.phparch.com!
--- Begin Message ---
Ok, thanks, but then how would I set it to check once a month or so?


----- Original Message -----
From: "Adam Voigt" <[EMAIL PROTECTED]>
To: "Stephen" <[EMAIL PROTECTED]>
Cc: "PHP List" <[EMAIL PROTECTED]>
Sent: Tuesday, November 05, 2002 12:22 PM
Subject: Re: [PHP] Finding HTML


> $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
>
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--- End Message ---
-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to