Same mysql link when calling mysql_connect a second time with same arguments

From: Date: Thu, 12 Apr 2001 21:23:15 +0000
Subject: Same mysql link when calling mysql_connect a second time with same arguments
Groups: php.dev 
Request: Send a blank email to php-dev+get-51514@lists.php.net to get a copy of this message
Hello, First, I know this behaviour exists since the early PHP3 days. Would it be an option to extend mysql_(p)connect to return new links instead of allready created one with a new, optional parameter ? Like : int mysql_connect ([string hostname [:port] [:/path/to/socket] [, string username [, string password [, boolean new_link]]]]) Because it doesn't exists yet I guess there aren't many complaining about this. But sometimes, especially when writing desktop client applications, this default, non changeable behaviour can really be a big problem. Currently I would use this feature to build a PHP-GTK application featuring multiple connection to multiple databases at once. Every connection has its own playground ( == window). So having two connections open for working with the same database with all arguments beeing the same, closing a link in one window also closes the link from the other window :( thanks for listening, Markus

« previous php.dev (#51514) next »