Date: 08/09/01
- Next message: Todd Simmons: "Re: [phplib] Help: Cannont inherit from undefined class db_Sql"
- Previous message: Todd Simmons: "Re: [phplib] Help: Cannont inherit from undefined class db_Sql"
- In reply to: Todd Simmons: "Re: [phplib] Help: Cannont inherit from undefined class db_Sql"
- Next in thread: Todd Simmons: "Re: [phplib] Help: Cannont inherit from undefined class db_Sql"
- Reply: Todd Simmons: "Re: [phplib] Help: Cannont inherit from undefined class db_Sql"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I would start with flipping the backslashes to regular slashes, since this
way, your path name escapes out the latter quote (")
so replace:
$_PHPLIB["libdir"] = "c:\program files\apache group\apache\php\";
with:
$_PHPLIB["libdir"] = "c:/program files/apache group/apache/php/";
Good luck!
Martijn Moret
-----Oorspronkelijk bericht-----
Van: Todd Simmons [mailto:wtsimmons <email protected>]
Verzonden: donderdag 9 augustus 2001 18:56
Aan: phplib <email protected>
Onderwerp: Re: [phplib] Help: Cannont inherit from undefined class
db_Sql
Thanks for your suggestions. I would like to follow-up if you don't mind.
I took a look at my prepend.php3 file and made one minor change and began
receiving a new error. I deleted the following line:
/*$_PHPLIB["libdir"] = "/home/nathan/webDevel/php-lib-stable/php/";
I had previously commented out this line and replaced it with one
representing a path on my system. Interestingly, deleting this line, which I
thought should have been ignored anyway, produced a different error:
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or
`T_NUM_STRING' in c:\Program Files\Apache Group\Apache\php\prepend.php3 on
line 15
Fatal error: Call to undefined function: page_open() in c:\program
files\apache group\apache\htdocs\index.php3 on line 16
My prepend.php3 files looks like this:
######
$_PHPLIB = array();
$_PHPLIB["libdir"] = "c:\program files\apache group\apache\php\";
require($_PHPLIB["libdir"] . "db_mysql.inc"); /* Change this to match your
database. */
require($_PHPLIB["libdir"] . "ct_sql.inc"); /* Change this to match your
data storage container */
require($_PHPLIB["libdir"] . "session.inc"); /* Required for everything
below. */
require($_PHPLIB["libdir"] . "auth.inc"); /* Disable this, if you are
not using authentication. */
require($_PHPLIB["libdir"] . "perm.inc"); /* Disable this, if you are
not using permission checks. */
require($_PHPLIB["libdir"] . "user.inc"); /* Disable this, if you are
not using per-user variables. */
/* Additional require statements go below this line */
# require($_PHPLIB["libdir"] . "menu.inc"); /* Enable to use Menu */
/* Additional require statements go before this line */
require($_PHPLIB["libdir"] . "local.inc"); /* Required, contains your
local configuration. */
require($_PHPLIB["libdir"] . "page.inc"); /* Required, contains the
page management functions. */
#####
Anyway, I'm not sure what could be wrong in this file. I've tried moving
require($_PHPLIB["libdir"] . "local.inc"); to a higher place in the file,
but that doesn't seem to do anything. Is my path setting okay (e.g.
$_PHPLIB["libdir"] = "c:\program files\apache group\apache\php\"; ), given
that I'm running on a Windows system?
The error line, Line 15 is .... require($_PHPLIB["libdir"] .
"db_mysql.inc");
It's like it's not finding db_mysql.inc, given the path?
Again, any suggestions would be greatly appreciated.
Thanks.
----- Original Message -----
From: "Layne Weathers" <layne <email protected>>
To: <phplib <email protected>>
Sent: Thursday, August 09, 2001 11:50 AM
Subject: RE: [phplib] Help: Cannont inherit from undefined class db_Sql
> > I do hope the members of this list accept English and
> > apologize if they do not.
>
> Don't worry; despite being on a German server, English is the official
> language of this list.
>
> > 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
>
> You need to check your prepend.php3 file. I would guess that you are
either
> including local.inc instead of prepend.php3 or that you have commented out
> the line in prepend.php3 that includes db_mysql.inc.
>
>
> Layne Weathers
> Ifworld Inc
>
>
> --
> Abbestellen mit Mail an: phplib-unsubscribe <email protected>
> Kommandoliste mit Mail an: phplib-help <email protected>
_________________________________________________________
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>-- Abbestellen mit Mail an: phplib-unsubscribe <email protected> Kommandoliste mit Mail an: phplib-help <email protected>
- Next message: Todd Simmons: "Re: [phplib] Help: Cannont inherit from undefined class db_Sql"
- Previous message: Todd Simmons: "Re: [phplib] Help: Cannont inherit from undefined class db_Sql"
- In reply to: Todd Simmons: "Re: [phplib] Help: Cannont inherit from undefined class db_Sql"
- Next in thread: Todd Simmons: "Re: [phplib] Help: Cannont inherit from undefined class db_Sql"
- Reply: Todd Simmons: "Re: [phplib] Help: Cannont inherit from undefined class db_Sql"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

