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
You could even use PEAR's Auth package to even further simplify things. ;-)
-- paperCrane <Justin Patrin>null
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php