Forum Moderators: open
Darn! My printer didnt print the alternating table cell colors, now I have to bust out the highlighters.
Everything you could ever want to know about the moon!
[home.hiwaay.net...]
Trying a gentle nudge back in the direction of the original topic ;)
days between updates / beginning next spidering / days between 1st day of update and following spidering / days between spidering
I also added moon data. It was programmed.
#!/usr/bin/perl&moon("7","21","2002"); #month -1, day, year.
sub moon {
$src = "---/moon/"; #url to YOUR moon gfx directory
$base = 679268563.19; # "average" new moon on 21:42:43 7/11/91
$period = 2551443; # 29 days 12 hours 44.05 minutes synodical period
use Time::Local;print "Content-Type: text/html\n\n";
($month,$day,$year) =@_;
$sec=$min=$hour=12;
$t = &timelocal($sec,$min,$hour,$day,$month,$year);#$t=time;
$phase = ($t - $base) / $period;
$phase -= int($phase);
$phase *= 32;
$phase = int($phase + 0.5);
$phase = 0 if ($phase > 31);
$file = $src . "moon_";
$file = $file . "0" if ($phase < 10);
$url = $file . $phase. ".gif";
print qq¦<IMG SRC="http://$url" height="32" width="32" border="0" title="moon phase">¦;
}
I believe we'd all like to have an idea of when the spider is doing it's major crawl for the updates.
Don't know if this is possible or not - maybe if you just took the webmasterworld.com site as an example.