× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hello List!

I searched the archives and saw a few posts on Codeigniter. We are dabbling
in it now and have it installed and working ... sorta. I am unable to get
the database layer working. Would any of you gurus out there have any tips
or a checklist of things that need to be done to get this working?

We are on v5r4 and below is some information I collected:

PHP version:
PHP 5.2.6 (cli) (built: Oct 23 2008 14:37:05)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies

with Zend Core v2.6.1, Copyright (c) 1998-2008, by Zend Technologies

with Zend Extension Manager v1.2.0, Copyright (c) 2003-2007, by Zend
Technologies
with Zend Optimizer v3.3.2, Copyright (c) 1998-2007, by Zend
Technologies
with Zend Debugger v5.2.14-i5, Copyright (c) 1999-2008, by Zend
Technologies

I downloaded and installed the db2_c driver. I get the following when
trying to load the database connection:

A Database Error Occurred
Unable to connect to your database server using the provided settings.
Filename: core/Loader.php
Line Number: 232

Here is what is in the log:
DEBUG - 2011-06-07 16:20:13—> Config Class Initialized
DEBUG - 2011-06-07 16:20:13—> Hooks Class Initialized
DEBUG - 2011-06-07 16:20:13—> Utf8 Class Initialized
DEBUG - 2011-06-07 16:20:13—> UTF-8 Support Enabled
DEBUG - 2011-06-07 16:20:13—> URI Class Initialized
DEBUG - 2011-06-07 16:20:13—> Router Class Initialized
DEBUG - 2011-06-07 16:20:13—> Output Class Initialized
DEBUG - 2011-06-07 16:20:13—> Security Class Initialized
DEBUG - 2011-06-07 16:20:13—> Input Class Initialized
DEBUG - 2011-06-07 16:20:13—> Global POST and COOKIE data sanitized
DEBUG - 2011-06-07 16:20:13—> Language Class Initialized
DEBUG - 2011-06-07 16:20:13—> Loader Class Initialized
DEBUG - 2011-06-07 16:20:13—> Database Driver Class Initialized
DEBUG - 2011-06-07 16:20:13—> Found options: Array
(
[i5_lib] => TST
)

ERROR - 2011-06-07 16:20:13—> Unable to connect to the database
DEBUG - 2011-06-07 16:20:13—> Language file loaded:
language/english/db_lang.php

from database.php:
$active_group = ‘default’;
$active_record = TRUE;

$db[‘default’][‘hostname’] = ‘localhost’;
$db[‘default’][‘username’] = ‘foo’;
$db[‘default’][‘password’] = ‘bar’;
$db[‘default’][‘database’] = ‘’;
$db[‘default’][‘dbdriver’] = ‘db2c’;
$db[‘default’][‘options’] = array(‘i5_lib’ => ‘TST’);
$db[‘default’][‘dbprefix’] = ‘’;
$db[‘default’][‘pconnect’] = TRUE;
$db[‘default’][‘db_debug’] = TRUE;
$db[‘default’][‘cache_on’] = FALSE;
$db[‘default’][‘cachedir’] = ‘’;
$db[‘default’][‘char_set’] = ‘utf8’;
$db[‘default’][‘dbcollat’] = ‘utf8_general_ci’;
$db[‘default’][‘swap_pre’] = ‘’;
$db[‘default’][‘autoinit’] = TRUE;
$db[‘default’][‘stricton’] = FALSE;
Thanks in advance for any guidance!

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.