Quick and Dirty Tools: WP Tattler

As I mentioned a number of days ago, I had written a script that would let me check WordPress installs even if they’re mostly broken, as long as the database information is available to me.

I noted that I wanted to be able to run it from the command line at some point.

I managed to pull this off in a couple of iterations of the script, and as such, I am happy with that.

I offer my little script up for people.

It can be had here: wp-tattler.tar.bz2

To run it, you need shell/command line access and PHP5. You may have to change the shebang. chmod it to executable status (chmod ugo+rx ttlr.php worked for me). cd to a directory that may contain a WP install, and call the script (for me, it was ~/path/to/ttlr.php).
You should get output like this:

[xial: ~/pxnet]$ ~/my/path/to/ttlr.php
WP Tattler 0.1.0
Local WordPress files claim to be: 2.9.1
But the database says: 2.9.1

Hopefully it’ll be a help to some stressed admin, even if it’s only a basic foundation for something written much better than a newbie like me can do.

Addendum: License is a BSD license.

Post a Comment

Your email is never shared. Required fields are marked *

*
*
CommentLuv Enabled

Switch to our mobile site