[Mediawiki-l] [SubjSpm] Re: where to find how MediaWiki works...
Simone Biagini
simone.biagini at dflsrl.it
Wed Apr 16 20:56:23 UTC 2008
selects works well are insert and update that are not executed or queued somewhere, I think
-----Original message-----
From: "Boris Epstein" borepstein at gmail.com
Date: Wed, 16 Apr 2008 16:00:25 +0200
To: "MediaWiki announcements and site admin list"mediawiki-l at lists.wikimedia.org
Subject: [SubjSpm] Re: [Mediawiki-l] where to find how MediaWiki works...
> On Wed, Apr 16, 2008 at 10:26 AM, Simone Biagini
> wrote:
>
> > Can someone tell me how MediaWiki code works or where can I find some
> > infos ?
> >
> > I'm trying to create a code to automatically add an user from an
> > external code (not an extension)
> >
> > This is the code that I'm using:
> >
> > ------------------------
> > > > require_once( 'includes/WebStart.php' );
> > require_once( "includes/Wiki.php" );
> > require_once( "includes/DefaultSettings.php" );
> > require_once( "includes/SpecialUserlogin.php" );
> > require_once( "includes/User.php");
> >
> > .
> > .
> > do some stuff
> > create a connection to the DB (without using the database class),
> > compute some data with user class
> > .
> > .
> > if (mysql_query($query)){
> > echo("all OK");
> > } else {
> > echo("ERROR");
> > }
> > .
> > .
> > close the DB connection
> > ?>
> >
> > the same query used out of this file works so It's not a syntax error...
> >
> > the only thing that I can think is that mediawiki buffers somewhere the
> > queries and not execute them... am I wrong ?
> > how is called the function used to execute this buffered queries ?
> >
> > I've no issue with select queries only with insert (and I suppose
> > update) ones.
> >
> > Can someone answer me... plese, I'm really puzzled !
> >
> > thank you all,
> > simone
> >
> > _______________________________________________
> > MediaWiki-l mailing list
> > MediaWiki-l at lists.wikimedia.org
> > https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>
>
>
> Do you get results passed back to you from your select queries? if you do,
> then the connection is OK, and the problem is somewhere else.
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l at lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
More information about the MediaWiki-l
mailing list