note 34217 added to function.mysql-pconnect
| From: | pulstar at mail dot com | Date: | Fri, 18 Jul 2003 16:13:53 +0000 |
| Subject: | note 34217 added to function.mysql-pconnect | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-52341@lists.php.net to get a copy of this message | ||
I had some problems when connecting to a remote server with mysql_pconnect and using the flag
MYSQL_CLIENT_COMPRESS. Sometimes it connect, but many times it give me the error:
Warning: mysql_pconnect(): Unknown database 'XXXXX'
If you have the same problem, try using mysql_connect instead. It worked fine for me. The script
will take a long to reconnect each time the page is reloaded, but it will transfer data with
compression. This is a little more secure than to send plain data over the Internet and also more
faster when transmiting large amount of data.
----
Manual Page -- http://www.php.net/manual/en/function.mysql-pconnect.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34217
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34217&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34217&report=yes