Mobile Blog in Da House

<? if (filemtime("mobile/mobile.html") > filemtime("blog.php")) include "mobile/mobile.html"; ?>

And with that line of code in my template, the mobile blog is back, publishing the day’s posts to the main blog file whenever I text an entry from my phone. The if-filemtime-include combination means that mobile entries disappear after I post a MT entry, but that’s okay with me.


  1. Richard says:

    I’m trying to think of a way to blend blogs with MT. You know, keep them separate, with their own categories and settings, but sorted by time of posting in one page.

    I suppose it could be done with say two files, each adding blog posts to an array, and then have an index page that sorts the array by time stamp. Hmm…

  2. Paulo says:

    I told Jesper this already: I was starting to figure out the integrated MTEntries-array scheme, but then I realized I wasn’t THAT obsessed. :D