[Mediawiki-l] Include LocalSettings.php from external PHP script?

Tim Starling tstarling at wikimedia.org
Wed Jun 30 03:49:52 UTC 2010

On 30/06/10 05:48, Samuel Lampa wrote:
> Yes, tried this without success ... though there might be some 
> workaround to the "sapi != cli" similar to the suggested solution for 
> using LocalSettings.php above in the thread?

Yes, use WebStart.php instead. WebStart.php does the same thing as
commandLine.inc, except that WebStart.php is for web and
commandLine.inc is for CLI. Trying to use commandLine.inc for web is
just silly.

-- Tim Starling

More information about the MediaWiki-l mailing list