I prefer persistent connections because you save time not having to rebuild
the connection each time.
As to how, the actual call to mysql_pconnect is buried deep in my framework
and it's kinda hard to explain how I do it. I would NOT suggest that you
store it as a session variable. That kinda defeats the purpose of using
connection pooling.
Yes, you could put the code in an include file.
Cal
http://www.calevans.com
-Original Message-
From: Denis Mettler [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 18, 2001 6:51 AM
To: [EMAIL PROTECTED]
Subject: Persistent connection with php to mysql
Hi,
some of you work with php and mysql to connect a website with a mysql
database.
do u prefer an simple connection or a persistent connection?
and if u prefer the last one. how can u make this connection in the
index.php3?
do u make this with an "./include"?
thanks
regards
denis
.' '.' `.
_.-| o | o |-._
.~ `.__.'.__.'^ ~.
.~ ^ / \ ^ ~.
\-._^ ^| |^_.-/
`\ `-._ \___/ ^_.-' /'
`\_ `--...--' /'
`-..___..-' /\ /\
__/ \__ | |/ /_
.'^ ^`. .' `__\
.'^ ^ `.__.'^ .\ \
.' ^ .^ .^ .' \/
//^ \'.__.'
| ^ /| ^ |
http://www.denis-mettler.de
-
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
-
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php