<feed xmlns="http://www.w3.org/2005/Atom">
  <div xmlns="http://www.w3.org/1999/xhtml" class="info">
         This is an Atom formatted XML site feed.
         It is intended to be viewed in a Newsreader or syndicated to another site.
         Please visit <a href="http://www.atomenabled.org/">atomenabled.org</a> for more info.
  </div>
  <title>Blogging Pubbitch</title>
  <link href="http://www.pubbitch.org/blog/index.atom" rel="self"/>
  <link href="http://www.pubbitch.org/blog/index.html" rel="alternate" type="text/html"/>
  <id>http://www.pubbitch.org/blog/php.atom</id>
  <updated>2008-07-25T21:09:40+00:00</updated>
  <author>
    <name>Simon Stewart</name>
  </author>
  <entry>
    <id>tag:pubbitch.org,entry,2003:51</id>
    <title>Dogfood!</title>
    <link href="http://www.pubbitch.org/blog/2003/04/29/dogfood" rel="alternate"/>
    <updated>2005-12-14T13:15:20Z</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
<p>Spent today putting some elbow grease into getting the Moveable Type plugin sorted out for my PHP based blogging tool, and it now works sufficiently well for me to start making a move to using it for my day-to-day blogging happiness, and to prove it, this should be my last post on right here for a little while. Instead, I'll be trying to post more on <a href="http://www.pubbitch.org/blog4php/">Blogging Pubbitch 2.0</a>, which is running the new software (downloadable from <a href="/blog/archives/blog4php-2003-04-29.tar.gz">here</a> if you want to play with it)
</p><p>
Looking at the state of play right now, there are a handful of things that I need to do:
</p><p>
<ul>
<li>Add a mechanism to upload content easily, possibly via one of the automated protocols. XML-RPC? Either that, or have a web-based front-end to enter blog entries</li>
<li>Write a database format so entries can be stored in one, as well as a more robust HTML Entry class and source so that I can bring all the site into my blog</li>
<li>Provide a facility for static rendering of content</li>
<li>Search functionality</li>
<li>Store metadata, if nothing else. Fortunately, this site is low volume, so it's not a big headache for now</li>
<li>Provide more ways of accessing content. A calendar might be the key to finding out what needs to be done</li>
<li>Improve the HTML template to make it look a little more pleasing :)</li>
<li>Comments! Comments! Comments!</li>
</ul>
</p><p>
That's enough to keep me going for now. What have I let myself in for?</p>      </div>
    </content>
  </entry>
  <entry>
    <id>tag:pubbitch.org,entry,2003:50</id>
    <title>Updated for Win32</title>
    <link href="http://www.pubbitch.org/blog/2003/04/24/updated_for_win32" rel="alternate"/>
    <updated>2005-12-14T13:15:20Z</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
<p>Just a quick one, cos I have to disappear for a few days, but I've got an updated version of blog4php uploaded to here. Amendments include a nifty little stylesheet for the HTML presentation, and a couple of bug fixes. In addition, I've now tested it on Win32 and PHP 4.2 and it works okay for me.
</p><p>
Get it from <a href="http://www.pubbitch.org/blog/archives/blog4php-2003-04-24.tar.gz">here</a>.</p>      </div>
    </content>
  </entry>
  <entry>
    <id>tag:pubbitch.org,entry,2003:49</id>
    <title>Blog4PHP now does RSS</title>
    <link href="http://www.pubbitch.org/blog/2003/04/23/blog4php_now_does_rss" rel="alternate"/>
    <updated>2005-12-14T13:15:20Z</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
<p>Having created an RSS template by the simple expedient of taking the one from this site and changing some of the tags, and after fleshing out some of the code and adding some more supporting functions, Blog4PHP can now provide an RSS feed that's readable (at least by Mark Pilgrim's <a href="http://www.diveintomark.org/projects/rss_parser/">ultra-liberal RSS parser</a>)
</p><p>
Though none of the template parsing code needed changing (miraculously) there have been some changes around the place:
</p><p>
<ul>
<li>"Tags.inc" is now significantly longer</li>
<li>Permalinks are now supported by the entries. The current implementation is a bit simplistic, relying on brute force to do the hard work, but it works.</li>
<li>The RSS can be found using <a href="http://diveintomark.org/archives/2002/06/02/important_change_to_the_link_tag.html">autodiscovery</a></li>
<li>Changes have been made to the blog and entry classes, allowing the blog to return an ordered list of entries, rather than the previous "first come, first served" order they were in before</li>
<li>Some dead code has been removed, particularly the "Tag.inc" and supporting classes. Just watch as I check them out of CVS and ruin all that hard work :)</li>
<li>The config.inc file has been rejigged to make a little more sense.
</ul>
</p><p>
You can grab the new release from <a href="http://www.pubbitch.org/blog/archives/blog4php-2003-04-23.tar.gz">here</a> but the old version's still there if you want to see how much has changed.</p>      </div>
    </content>
  </entry>
  <entry>
    <id>tag:pubbitch.org,entry,2003:48</id>
    <title>Blogging in PHP</title>
    <link href="http://www.pubbitch.org/blog/2003/04/23/blogging_in_php" rel="alternate"/>
    <updated>2005-12-14T13:15:19Z</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
<p>I've spent the past couple of days hacking together a simple templating system for my blogging tool and that now works for me, so without further dithering I've uploaded the first release to here, ready for you to have a play with. Be warned that it undoubtedly has rough edges, is lacking functionality, has dead code all over the shop and all the other gumph and pitfalls which goes for a release straight from a CVS tree.
</p><p>
It's not been tested completely on Windows, but it should work on any system using PHP 4+, though I'd recommend PHP 4.3 or above, because that's what I use :) Installation is simple: just unpack into your public_html folder (or equivalent) read the README and edit "config.inc" If you're concerned about security, the only thing that really needs to be publically accessible is the "blog.php" page, the rest can be hidden away out of public reach but on the PHP include path.
</p><p>
The next stage is to add an RSS flavour so that I can read entries in my favourite aggregator, and to flesh out the Entry interface to include such minimal considerations as the date published --- I told you that this was basic. That, and finish of the Entry subclass that reads <a href="http://www.moveabletype.org">Moveable Type</a> back ups. Once those are done, I'll start <a href="http://catb.org/esr/jargon/html/entry/dogfood.html">eating my own dogfood</a>.
</p><p>
<a href="http://www.pubbitch.org/blog/archives/blog4php.tar.gz">Download Blog4PHP</a> Some day, I'll have a fancy name for it. Any suggestions?</p>      </div>
    </content>
  </entry>
  <entry>
    <id>tag:pubbitch.org,entry,2003:45</id>
    <title>Templating</title>
    <link href="http://www.pubbitch.org/blog/2003/04/15/templating" rel="alternate"/>
    <updated>2005-12-14T13:15:19Z</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
<p>Spent the morning putting together a basic templating language in PHP. It's now up and running with simple tags (which are entirely programmable and are not hard-coded) Just need to implement tags that contain a body and possibly hook up the code supporting parameters, and we're away!</p>      </div>
    </content>
  </entry>
  <entry>
    <id>tag:pubbitch.org,entry,2003:39</id>
    <title>More On My Blogging Tool</title>
    <link href="http://www.pubbitch.org/blog/2003/03/18/more_on_my_blogging_tool" rel="alternate"/>
    <updated>2005-12-14T13:15:19Z</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
<p>I spent a while hacking last night hacking away at my PHP-based blogging tool, and it now can cope with multiple separate data stores (in theory) Currently, only a file system store is supported, but I'm working on a <a href="http://www.moveabletype.org/">MT</a> store so that I can move from MT to my own code. 
</p><p>
I also implemented a basic wiki-like syntax, but it currently lacks support for linking to other documents, so obviously still needs a little work. On the plus-side, this means that I've now got a standard format for blog entries that it's reasonably simple to convert to and from. Currently, blog entries can be in plain text or HTML format, but I expect there to be a need to support the internal format that MT uses too. Shouldn't be too bad :)
</p><p>
There's also some skeleton code to support a templating system, with different output formats being available. The only one that has some meat on the bones is the HTML format, but there's basic RSS support in there too.
</p><p>
Once I've decided on a license and get the RSS and HTML output formatters working, as well as supporting a migration from my moveable type installation, I'll make a source-drop here on the site ready for people to use and abuse. 
</p><p>
Actually, I'd like some comments about the license to release this under. Personally, I'm leaning towards either the LGPL or the GPL. There are arguments for both, and I'm not too stressed, so if people who might use this software have a preference either way, you've got a couple of days (from 2003-03-18) to tell me, and as long as I have no strong reason not to use the majority vote, I'll go with that.
</p><p>
<strong>Update:</strong> The MT migration might be a bit more involved than I thought it would be, because it requires support for DBM in the version of PHP that you're using. None of the installations of PHP that I have to hand actually have that compiled in. Might drop that idea for now and implement it when I get a chance to relax a little bit.</p>      </div>
    </content>
  </entry>
  <entry>
    <id>tag:pubbitch.org,entry,2003:35</id>
    <title>Personal blogger</title>
    <link href="http://www.pubbitch.org/blog/2003/03/11/personal_blogger" rel="alternate"/>
    <updated>2005-12-14T13:15:19Z</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
<p>All the coolest boys on the block are writing their own blogging tools, and since I need a decent project for the series of magazine articles I'm writing about PHP, now seems like the ideal time to get cracking on my own. The question is, what do I want to be able to do?
</p><p>
Well, obviously, entering text should be a doddle, so it'd be handy if I could feed it text files in a directory in a variety of formats (you know, plain text, HTML and also email) as well as storing data in a more traditional database. Naturally, having a simple textarea to enter data should also be supported, perhaps using some sort of wiki format so that you don't need to be a ninja web-developer in order to get your blog looking nice. Categories should also be easy to do, and it goes without saying that output should be in a variety of formats. 
</p><p>
To reduce server load, it would be great if the blog supported static rendering of files. And it goes without saying that it'd be great to support pingback, trackback and all the other bells and whistles that are coming to the fore.
</p><p>
Oh, and comments. And some means of easily handling your blogroll. And, naturally, it should all be under some sort of Open Source license.
</p><p>
Anything I've forgotten?
</p><p>
<strong>Update:</strong> After a couple of hours of coding, the raw framework is in place, and I can publish text based blog entries. Obviously, not supporting skinning atm, and it doesn't have a nice calendar, but it's a start.</p>      </div>
    </content>
  </entry>
</feed>
 
