Hey,
I'd like to load MediaWiki from some PHP script and have not been able to find a way to do this so far.
After someone suggested trying to do this as a maintenance script, I tried http://pastebin.com/scKFxF2J
That however does not work as there is a check in doMaintenance.php (shouldExecute) that makes sure initialization is only done when no function calls are present in the call stack. My script is getting called by some other library and thus there will clearly be function calls in the call stack when doMaintenance.php is included. Is it even possible to load MediaWiki in such a case? And what is this restriction in shouldExecute good for?
Cheers
-- Jeroen De Dauw http://www.bn2vs.com Don't panic. Don't be evil. --