|
Monday, February 25
Post, then flush
While I'll admit I'm a habitual blogger, even a compulsive one, you'll be pleased to know I draw the line at updating my blog while pushing out a log. Frankly, I'd be worried about the laptop falling off my lap when I wiped, but perhaps he's got a special table. I'd also advocate wireless networking, because someone might get impatient that he's hogging the can and give the cat-5 cable a yank, just to hint. Don't get me wrong, I love Doc's blog, but now I'll be sure to never touch his laptop. '; } else { if(stristr($filename,"archive")) { $dir=$_SERVER['DOCUMENT_ROOT']; $template='_01_archive.html'; $tail=strlen($template); $thisArchive=$filename; //$files=scandir($dir); $dh = opendir($dir); while (false !== ($filename = readdir($dh))) { $files[] = $filename; } sort($files); $earlyarch=""; $laterarch=""; $prevarch=""; $next=0; foreach($files as $file) { if (substr($file,-$tail)==$template) { if ($next==1) { $laterarch=$file; $earlyarch=$prevarch; $next=0; } if ($file==$thisArchive) { $next=1; } else { $prevarch=$file; $earlyarch=$prevarch; } } } $link=''; $divider=''; if(file_exists($earlyarch)) { $link='< Earlier Archive'; $divider=" | "; } if(file_exists($laterarch)) { $link=$link.$divider.'Later Archive >'; } $link=$link.' '; } } echo($link); ?> |