Old Blogger Archive PHP Code

I’m doing some blog housecleaning this morning. Here’s the code I used to use to display an archive list of blogger entries:

/*
blogger file listing to file processes things special

*/
exec(“ls -r *_01_archive.php”, $archlist);
$i = 0;
while (($archlist[$i])) // this bit makes links for all the images
{

echo ““;
echo substr($archlist[$i],5,2);
echo “/”;
echo substr($archlist[$i],0,4);
echo “

n”;
$i++;
}

?>

Pretty straightforward, it grabs a list of files with the right name pattern, then prints a pretty display of the previous listings.

Now that we’re on Wordpress, it’s not necessary. I blog it to back it up, just in case.