Re: Re: DB_DataObject Fatal error

From: Date: Tue, 17 Aug 2004 17:29:07 +0000
Subject: Re: Re: DB_DataObject Fatal error
References: 1 2 3 4  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-14152@lists.php.net to get a copy of this message
On Tue, 17 Aug 2004 17:27:08 +0200, Thomas Mammitzsch <smartt@gmx.de> wrote: > Thomas Mammitzsch wrote: > > >> require_once("db/DataObject.php"); > >> > >> > >> This should be DB/DataObject.php, not db/DataObject.php > >> > >> Regards > >> Alan > > > > > > thanks for your response! > > on my windows box it's Db (it doesn't make any difference for > > Windows). Also i don't get an error that DataObject.php isn't found, > > but: > > > > Fatal error: Cannot redeclare class db_dataobject_overload in > > d:\htdocs\pear\pear\DB\DataObject.php on line 188 > > > > which seems to have another reason. > > > > regards, Thomas > > > yes, you were right! after writing db uppercase it worked (although > windows showed it as Db)! > The require/include_once functions use the *exact* string you give them to make sure that a file isn't included multiple times. This means that if you include 'db/DataObject.php' and another file (probably a PEAR file) includes 'DB/DataObject.php', then even though theyre the same file on your hard drive, PHP sees it as two different files. -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin--

« previous php.pear.general (#14152) next »