using existing mysql connection in a php extension
From: Adrian (adrian_at_planetcoding.net)
Date: 10/31/03
- Next message: Dean E. Weimer: "Re: [PHP] PHP & Apache 2"
- Previous message: Tom Rogers: "Re: [PHP] Oh, for a "sureset()" (orthogonal to isset())"
- Next in thread: Gareth Williams: "Re: [PHP] using existing mysql connection in a php extension"
- Reply: Gareth Williams: "Re: [PHP] using existing mysql connection in a php extension"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 31 Oct 2003 13:14:38 +0100 To: php-general@lists.php.net
hello,
is it possible to use an existing mysql connection created from
php-code $conn=mysql_connect('localhost','root','secret'); in an
php-extensions, e.g. by giving the ressource id to the extension as an
argument: my_extemsion_function('do_something',$conn); ?
because if i have to connect to the mysql server again from my
extension, i'll lose the performance-improvement gained from the
faster C++-code.
-- Adrian mailto:adrian@planetcoding.net www: http://www.planetcoding.net www: http://www.webskyline.de
- Next message: Dean E. Weimer: "Re: [PHP] PHP & Apache 2"
- Previous message: Tom Rogers: "Re: [PHP] Oh, for a "sureset()" (orthogonal to isset())"
- Next in thread: Gareth Williams: "Re: [PHP] using existing mysql connection in a php extension"
- Reply: Gareth Williams: "Re: [PHP] using existing mysql connection in a php extension"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]