#22196 [Bgs]: mysql_pconnect

From: Date: Thu, 13 Feb 2003 13:00:18 +0000
Subject: #22196 [Bgs]: mysql_pconnect
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-33013@lists.php.net to get a copy of this message
ID: 22196 User updated by: velimira_bg@abv.bg Reported By: velimira_bg@abv.bg Status: Bogus Bug Type: MySQL related Operating System: Windows XP PHP Version: 4.3.0 New Comment: You wanted more information, I gave it to you. If you think this problem is only mine , you are wrong. Regards. Previous Comments: ------------------------------------------------------------------------ [2003-02-13 03:28:00] georg@php.net Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Thank you for your interest in PHP. I'm pretty sure, that this didn't work in previous versions! ------------------------------------------------------------------------ [2003-02-13 03:15:26] velimira_bg@abv.bg Well, I use mysql-3.23.38. For example, I have the following scripts(the two files are consequent): one.php <?php if (!($link = mysql_pconnect ($DB_SERVER,$DB_LOGIN, $DB_PASSWORD))) { DisplayErrMsg(); return 0 ; } $result = mysql_db_query("$DB", "select * from table"); //here the query works ?> two.php <?php if (!($result = mysql_db_query("$DB", "select * from table"))) echo mysql_error(); //here it ouputs an error: //Access denied for user: '@localhost' to database ?> The same code works on other machine with an older version of PHP ------------------------------------------------------------------------ [2003-02-13 03:02:34] georg@php.net Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip ------------------------------------------------------------------------ [2003-02-12 19:37:40] nicos@php.net We really need more informations. Your script so we can try to reproduce. We also need your mysql version... Be more descriptive if you can please. ------------------------------------------------------------------------ [2003-02-12 19:16:08] velimira_bg@abv.bg I have problems with mysql_pconnect. When I use it once, on the next page the link is gone and I should connect again to the DB in order to make queries. I did not have this problem with any of the oldest versions. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22196&edit=1

« previous php.bugs (#33013) next »