Rebuilding Movable Type Using PHP
November 11, 2005 12:01 PM
Subscribe
How do I trigger the rebuild of a MT blog using PHP?
I'm working on a way to allow anonymous users to submit suggested entries to my blog (initially as a draft) and then later activate them (switch the status to post, then rebuild the blog), all outside the MovableType interface.
I've gotten everything working right up until the step where I rebuild. Now I'm stuck. What I'd really like to do is use MT-Rebuild by following this guy's process:
http://www.cadenhead.org/workbench/news/2392
Unfortunately, I don't get how I should be modifying his example for my own situation. Here's what I've tried (among several things) without success:
system("$this->/usr/bin/perl $this->/home/myaccount/public_html/mt/mt-rebuild.pl -all");
I'm a php novice, so I'm guessing I've got an error in that string.
Can anyone point out my error?
I'm also open to other suggestions, as long as it can be achieved from within php and doesn't expose the user to the Movable Type interface.
PS--To be clear, I've bought an unlimited authors license of MT. This is more about not wanting to force people to register as authors in order to post.
posted by jeanmari to computers & internet (6 comments total)
posted by kcm at 12:09 PM on November 11, 2005