Re: [PHP] shouldn't mysql_pconnect force reuse of mysql connections?

2003-08-19 Thread Curt Zirzow
* Thus wrote anders thoresson ([EMAIL PROTECTED]): function db_connect ($user, $pwd, $db, $debug = 0) { $link = @mysql_pconnect(localhost, $user, $pwd); if($link mysql_select_db($db)) ... I thought that making another or a third call to db_connect would reuse the same

Re: [PHP] shouldn't mysql_pconnect force reuse of mysql connections?

2003-08-19 Thread anders thoresson
the second time you request in php you'll have two, and so on. Until the number of connections in the pool gets filled up will mysql tell php to use an id that exists. You mean that until the pool is filled a new id will be used? That's the case here, anway: I get up to 30 id's and then no more

Re: [PHP] shouldn't mysql_pconnect force reuse of mysql connections?

2003-08-19 Thread anders thoresson
You mean that until the pool is filled a new id will be used? That's the case here, anway: I get up to 30 id's and then no more new a added, but the time column reset, which I take means that that id is reuses? There are still 30 open threads/processes in the process list, all with command

Re: [PHP] shouldn't mysql_pconnect force reuse of mysql connections?

2003-08-19 Thread Curt Zirzow
* Thus wrote Curt Zirzow ([EMAIL PROTECTED]): * Thus wrote anders thoresson ([EMAIL PROTECTED]): function db_connect ($user, $pwd, $db, $debug = 0) { $link = @mysql_pconnect(localhost, $user, $pwd); if($link mysql_select_db($db)) ... I thought that making another or a