Login | Register
My pages Projects Community openCollabNet

Discussions > issues > [cowiki-issues] Dev-list and MySQLi

cowiki
Discussion topic

Back to topic list

[cowiki-issues] Dev-list and MySQLi

Author Chris Pickel <chpickel at sas dot upenn dot edu>
Full name Chris Pickel <chpickel at sas dot upenn dot edu>
Date 2005-04-06 13:05:49 PDT
Message I have two quick things to mention in this message. My apologies if
this better-suited to a different list, but this seemed most
appropriate of the four I was presented with.

1) The dev-list. The page on cowiki.org
(http://www.cowiki.org/137.html) makes references to the existence of
such a list, but never describes it. From reading a couple of messages
from the archives, I get the impression that it's a private list.
However, it would be useful if there were some mention of what it's for
on the Mailing Lists page.

2) When I upgraded to PHP5, I also upgraded from the standard MySQL
library to MySQLi (MySQL improved, an object-oriented interface from
PHP to MySQL). However, there isn't presently any support for it in
cowiki. In order to get cowiki working on my server, I did a quick hack
conversion, but I've also tried to modify the current CVS code to
provide a more robust implementation.

Users of MySQL with PHP5 fall into one of three categories: those with
the classic library, those with the new library, and occasionally,
those with both. Accordingly, if the scheme is 'mysql', the code will:
* Use the standard MySQL library if available
* Use MySQLi if the standard library isn't available
* Report an error if neither is available

And, if the scheme is 'mysqli', it will:
* Use MySQLi if available
* Report an error if not.

This way, users with a either install should be able to use the default
"mysql" setup, and users of both can choose. Unfortunately, preserving
this flexibility forced me to turn AuthManager from an interfacing
class into more of a factory class. I also haven't had the chance to
test out the code on any server but mine (and I haven't tested it
extensively on mine).

I can put up code for the purpose of merging it into the tree; since
it's largely copy/paste and minor edits, it conforms to most (all?) of
the coding guidelines, except for tabs, which I can fix before posting.

- Chris Pickel

« Previous message in topic | 1 of 10 | Next message in topic »

Messages

Show all messages in topic

[cowiki-issues] Dev-list and MySQLi Chris Pickel <chpickel at sas dot upenn dot edu> Chris Pickel <chpickel at sas dot upenn dot edu> 2005-04-06 13:05:49 PDT
     Re: [cowiki-issues] Dev-list and MySQLi sy_ali Sy Ali 2005-04-06 14:58:41 PDT
     Re: [cowiki-issues] Dev-list and MySQLi dgorski Daniel T. Gorski 2005-04-11 18:03:38 PDT
         Re: [cowiki-issues] Dev-list and MySQLi Hakan Kuecuekyilmaz <hakan at mysql dot com> Hakan Kuecuekyilmaz <hakan at mysql dot com> 2005-04-11 18:09:12 PDT
             Re: [cowiki-issues] Dev-list and MySQLi dgorski Daniel T. Gorski 2005-04-11 18:13:16 PDT
                 Re: [cowiki-issues] Dev-list and MySQLi Hakan Kuecuekyilmaz <hakan at mysql dot com> Hakan Kuecuekyilmaz <hakan at mysql dot com> 2005-04-11 18:18:21 PDT
                     Re: [cowiki-issues] Dev-list and MySQLi dgorski Daniel T. Gorski 2005-04-11 18:21:26 PDT
     Re: [cowiki-issues] Dev-list and MySQLi dgorski Daniel T. Gorski 2005-04-11 18:53:19 PDT
         Re: [cowiki-issues] Dev-list and MySQLi Chris Pickel <chpickel at sas dot upenn dot edu> Chris Pickel <chpickel at sas dot upenn dot edu> 2005-04-11 18:58:10 PDT
             Re: [cowiki-issues] Dev-list and MySQLi dgorski Daniel T. Gorski 2005-04-12 12:33:18 PDT
Messages per page: