[phplib] Help: Cannont inherit from undefined class db_Sql From: Todd Simmons (wtsimmons <email protected>)
Date: 08/09/01

I do hope the members of this list accept English and apologize if they do
not. I'm trying to use PHPLIB on a Win98 machine running PHP4, Apache and
MySQL and I have been unable to get past the following error on the initial
index.php3 page:

Fatal error: Class db_example: Cannot inherit from undefined class db_sql in
c:\Program Files\Apache Group\Apache\php\local.inc on line 12

Line 12 in my local.inc is simply what the default was, plus my database
parameters:

Line 12 -> class DB_Example extends DB_Sql {
var $Host = "localhost";
var $Database = "VCWeb";
var $User = "root";
var $Password = "";
}

I keep referring back to the documentation, hoping to find something I may
have missed, but to no avail. I have also scoured various newsgroups on
various sites hoping to find a fix. A couple notes:

I'm running php4, which presumably has MySQL support built-in.

I have installed the tables (active_sessions, active_sessions_split,
auth_user and auth_user_md5) in a database called VCWeb and have been able
to run select * from auth_user from the command line (using MSDOS prompt)
successfully. Permissions are very lax. I can do this logging in as 'root'
or even with no user login name at all. In any case, the query successfully
returns the user "kris".

I am a little unsure as to whether I need to take steps to tweak some
settings to enable the webserver to access MySQL, as suggested in the
documentation. I am fairly new to the Apache/MySQL/PHP platform combination
coming from MS ASP. However, I am already running phpMyAdmin and it's had no
problem allowing me to access VCWeb and its tables from my browser.
Naturally, this leads me to believe the webserver can run PHP scripts to
access a MySQL database.

Anyway, I am most interested in leveraging PHPLIB and would graciously
appreciate any suggestions.

Sincerely,
Todd

_________________________________________________________
Do You Yahoo!?
Get your free  <email protected> address at http://mail.yahoo.com

-- 
Abbestellen mit Mail an:   phplib-unsubscribe <email protected>
Kommandoliste mit Mail an: phplib-help <email protected>