UBB.Dev
Posted By: erikg Fatal error - mysql_pconnect() - 10/19/2001 2:13 PM
I had it all up and running. Then I had to shift it to a new server (the old one is going to a museum :-)) and all went well until this error pops up:

Fatal error: Call to undefined function: mysql_pconnect() in /home/sites/home/web/php/wwwforum/mysql.inc.php on line 26

Here is a snip from my php.ini:
[MySQL]
mysql.allow_persistent = On ; allow or prevent persistent link
mysql.max_persistent = -1 ; maximum number of persistent links. -1 means no limit
mysql.max_links = -1 ; maximum number of links (persistent+non persistent). -1 means no limit
mysql.default_port = ; default port number for mysql_connect(). If unset,
; mysql_connect() will use the $MYSQL_TCP_PORT, or the mysql-tcp
; entry in /etc/services, or the compile-time defined MYSQL_PORT
; (in that order). Win32 will only look at MYSQL_PORT.
mysql.default_host = ; default host for mysql_connect() (doesn't apply in safe mode)
mysql.default_user = ; default user for mysql_connect() (doesn't apply in safe mode)
mysql.default_password = ; default password for mysql_connect() (doesn't apply in safe mode)
; Note that this is generally a *bad* idea to store passwords
; in this file. *Any* user with PHP access can run
; 'echo cfg_get_var("mysql.default_password")' and reveal that
; password! And of course, any users with read access to this
; file will be able to reveal the password as well.


Anybody who can help me - Please!
Posted By: erikg Re: Fatal error - mysql_pconnect() - 10/19/2001 2:23 PM
Isn't it just great when you end up finding the solution yourself? :-)

I had just changed the php.ini by adding this( 'extension=mysql.so' )
to php.ini, but I hadn't reloaded Apache, so a little killall -HUP httpd did the trick.
© UBB.Developers