On 6/25/07, David Precious <[EMAIL PROTECTED]> wrote:
Bill Ward wrote:
> On 6/25/07, Andy Armstrong <[EMAIL PROTECTED]> wrote:
>> On 21 Jun 2007, at 19:54, Bill Ward wrote:
>> > Does anyone know of a Perl module that talks to a WordPress database?
>> > I'm thinking of writing one but prefer to avoid wheel reinvention.
>>
>> I imagine it'd be better to talk to Wordpress's XMLRPC interface
>> unless you need something that can't be done that way. The DB schema
>> is free to change in backwards incomptible ways.
>
> Yeah, I'd have to track schema changes, but I want to do things like
> piggy back on its user accounts which I don't think XMLRPC gives
> access to.

Yep, if the schema changes things could break in subtle ways, you'd have
to be oh-so-careful to double-check that the schema is as you expect it
to be.

I wonder if you could use a Wordpress plugin to expose the user accounts
etc via XMLRPC?

Then your module has the advantage of being able to treat the WP
internals as a black box, and just use a documented interface.

That might be nice too.  Though another issue is performance: XMLRPC
is kind of inefficient compared to a direct database connection...

What I was thinking of doing was certifying it against (a) specific
version(s) of WordPress, and having it refuse to work with an
uncertified version.  I believe WordPress stores the version
information in the DB.


--
Help bring back the San Jose Earthquakes - http://www.soccersiliconvalley.com/

Reply via email to