Re: class design question
| From: | Justin Patrin | Date: | Mon, 12 Jan 2004 23:01:15 +0000 |
| Subject: | Re: class design question | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-174386@lists.php.net to get a copy of this message | ||
Jason Sheets wrote:
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.netYou could even use PEAR's Auth package to even further simplify things. ;-) -- paperCrane <Justin Patrin>nullhi 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