2009/10/21 Platonides <Platonides(a)gmail.com>om>:
If you're working inside mediawiki php.
$wgTitle = Title::newFromText( "MyArticle" );
$wgArticle = new Article( $wgTitle );
$wgArticle->insertNewArticle( "Some text", '', false, false );
If you don't want to work with php, use maintenance/importTextFile.php
Please use other variable names than $wgTitle and $wgArticle to reduce
confusion with the global variables by the same name.
Roan Kattouw (Catrope)