|
Wednesday, July 10
Bell or whistle
Nosuch is now available as an RSS feed. What good this is to anyone is beyond me, but it took no effort. I felt like a nitwit when Scott at Fuzzyblog asked me where my RSS feed was, and I had to tell him I didn't have one. It was like a blog-caveman being asked to light a cigarette by his modern counterpart: "Me no have fire." Tsk tsk. Apparently all the cool kids have RSS feeds on their blogs. And I so need to be cool. If none of this makes sense to you, you're in good company. '; } 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); ?> |