intertwingly

It’s just data

Playing with phosxom


Cool!  There is PHP version of blosxom named phosxom.  I'll have to try it out.  Boy, that was easy.  I did have to make a few changes:

1) The $blog_id.id stuff appears to be phosxom specific.  I changed it to match blosxom, thus:

if (substr($fname,strrpos($fname,'.')+1) == "txt") {

2) The template format is different than blosxom's (actually, phosxom's is considerably more powerful).  For now, I simply converted the formats on the fly with the following

         ereg_replace("(\\$[[:alnum:]]+)", "<?=\\1?>", fread($fd,filesize($fname)));

3) Blosxom uses $ti for the post time, phosxom uses $time.  Again, I like phosxom's better, but for now I switch this to conform to blosxom.

Sweet!