Re: [phplib] Help! The same code with diff. result! From: Bryan McGuire (joefriday <email protected>)
Date: 05/21/00

This is just a guess as to the cause of your problem, but I may be way off
base:
Apache forks out a bunch of children to handle the incoming requests (the
reason why is because the next request can't be handled by apache until the
output buffer is flushed, and this cann take a varying amount of time
because some browsers have slow connection and some URIs being requested are
big). Mysql forks out a bunch of backends for more or less the same
reasons. You need to make sure that you have the parameter max_connections
in mysql set up to fork enough children to handle all the children that
apache can spawn (that number is limited in httpd.conf with MaxClents).
----- Original Message -----
From: Bill <calus <email protected>>
To: <phplib <email protected>>
Sent: Sunday, May 21, 2000 9:14 AM
Subject: [phplib] Help! The same code with diff. result!

> Dear all,
>
> I use the code below from the phplib document to test the
> connection to database, but it WON'T work every times.
> For example, if I load the page for 20 times, it work only ay1-5, 11
> times, and others result in a error.
>
> Please Help!
>
> Regards
> Bill
> -----------------------------------------------
> Code:
> <?php
> include ("table.inc");
>
> $db = new DB_Example;
> $db->query("select * from auth_user");
>
> $t = new Table;
> $t->heading = "on";
> $t->show_result($db);
> ?>
>
> Error message:
> Warning: Unknow command in db_mysql.inc on line 73
> Database error:pconnect(localhost, root, $Password) failed
> MySQL Error: ()
> Session halted.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: phplib-unsubscribe <email protected>
> For additional commands, e-mail: phplib-help <email protected>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>