Hello,
Assuming $text is the text to be inserted, and $title is the Title object:
if( !$title->>exists() ) { $article = new Article( $title ); $article->doEdit( $text ); }
now I get "Fatal error: Call to a member function exists() on a non-object".
Article::doEdit() will accept other parameters; see the documentation.
Where can I find documentations of functions like doEdit()?
TIA Erhard
mailto:mediawikimailinglist@erhard-rainer.com