Re: class design question

From: Date: Mon, 12 Jan 2004 22:53:26 +0000
Subject: Re: class design question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-174384@lists.php.net to get a copy of this message
Take a look at the PEAR DB Abstraction layer, I usually store connection info in an XML or INI file and use parse_ini or PEAR Config to parse the configuration file. http://pear.php.net > hi there. > > i am working out the finishing touches on a authentication class that > uses mysql to store the time of last access and some other goodies. > > my question is, when developing a class that uses a database, what is > the best way to handle the database bit? for now i just set the > connection in an .inc file and include that in the class, but there has > got to be a better way - especially for portability sake. > > thanks for any suggestions. > > - rogue > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#174384) next »