Date: 10/27/00
- Next message: Pascal Jolin: "[phplib] phplib / pgsql 7 problems (too many clients)"
- Previous message: Daniel Bondurant: "RE: [phplib] iis, frames and page_close"
- In reply to: c _wyong: "[phplib] y these error are so fatal?"
- Next in thread: Pascal Jolin: "[phplib] phplib / pgsql 7 problems (too many clients)"
- Reply: Pascal Jolin: "[phplib] phplib / pgsql 7 problems (too many clients)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
If you are using the sql_query class in any other page, the query becomes
a session variable. That means the query is serialized into session data,
which is stored in the database and recalled for every subsequent page for
the session.
So if you use a class $q of type sql_query in a.php, register it, and then
go to b.php, page_open in b.php will try to re-instantiate $q. But if the
sqlquery.inc file is not include()d in b.php, page_open won't know how to
do that.
The moral is that if you want to use class sql_query ANYWHERE in your
site, you must put sqlquery.inc it in the prepend.php file, or somehow
otherwise make sure it's included into every php page.
> I am using php4, phplib7.2c, pws, win98(the big bully, i know i souldn't
> trust it).
"Men at some times are masters of their fates:
The fault, dear Brutus, is not in our stars
but in ourselves, that we are underlings."
--Julius Caesar, I.ii.147-149
Hope that helps. (The tip about prepending sql_query.inc, not the
admittedly pedantic quote-dropping. ;-)
--Matt
----------------------------------------------------------------
Matthew Leingang http://www.math.rutgers.edu/
Rutgers University leingang <email protected>
Department of Mathematics "This signature needs no quote."
On Fri, 27 Oct 2000, c _wyong wrote:
> Previously i has run Phplib without no problem at all and later all these
> error start poping out when i run showoff.php3, test.php3, and others
> examples, except probe.php3 which seems to run quite ok.
>
> Fatal error: Cannot instantiate non-existent class: sql_query in Eval code
> on line 1
>
> Fatal error: Cannot redeclare class db_sql in Unknown on line 12
>
> (all examples, after refresh a fews time, this message will come out )
>
> PHP has encountered an Access Violation at 018D7C3D
>
>
> Just point me to the posible root of the problem and i will dig out the bug.
>
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
> Share information about yourself, create your own public profile at
> http://profiles.msn.com.
>
>
> --nklihhknlhkmmkggllim
> Content-Type: message/rfc822
> Content-Disposition: inline; filename="phplib_8364.ezm"
>
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>
- Next message: Pascal Jolin: "[phplib] phplib / pgsql 7 problems (too many clients)"
- Previous message: Daniel Bondurant: "RE: [phplib] iis, frames and page_close"
- In reply to: c _wyong: "[phplib] y these error are so fatal?"
- Next in thread: Pascal Jolin: "[phplib] phplib / pgsql 7 problems (too many clients)"
- Reply: Pascal Jolin: "[phplib] phplib / pgsql 7 problems (too many clients)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

