For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > January 2005 > Re: [PEAR] Data Object database.links.ini problem









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PEAR] Data Object database.links.ini problem
Justin Patrin

2005-01-27, 4:00 pm

On 27 Jan 2005 09:37:03 -0000, PHPDiscuss - PHP Newsgroups and mailing
lists <dumont.jp@free.fr> wrote:
> Justin Patrin wrote:
>
>
>
>
>
>
> Ok thx.
>
> But I just can't make it work. Is there a way to pointing on db.links.ini
> file directly ?
> And is there a way to show if the ini files are loaded correctly ? (i'll
> look at the code).
> thx
>


print_r($GLOBALS['_DB_DATAOBJECT']['LINK
S']);

If that outputs nothing it doesn't see your file. You can also try
turning up DB_DO's debug level with:

DB_DataObject::debugLevel(5);

or a lower #, but I usually use 5 to see everything.

Are you naming the file with the database name? If your database is
named "foo" then your links file should be foo.links.ini.

--
Justin Patrin
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com