Re: [Phplib-users] parse error in auth.inc
Brought to you by:
nhruby,
richardarcher
From: Donncha O C. <don...@tr...> - 2002-08-01 09:07:11
|
What version of PHP are you using? Try the following.. ## back compatibility: if database_class is set, create db object if(isset($this->database_class)) { $t =3D $this->database_class; $this->db =3D new $t; } I know there was a problem with PHP3 using the original format.=20 Phplib 6.1 had this workaround.. It's still running on one of our servers= ! Here's the original code: ## Set up the database connection $class =3D $this->database_class; ## PHP - I hate it! $this->db =3D new $class; Donncha. On Thursday 01 August 2002 00:11, Marco wrote: > Hi Peter, > > I looked in my local.inc. I've found some different extensions of the > Auth class (to test some different kinds of logins). But all of them > have a $database_call =3D "DB_Example"; in it. I think this should be o= k. > > Marco > > Peter Kursawe wrote: > >Hi Marco, > > |