Click to See Complete Forum and Search --> : Call to undefined function mysql_pconnect()


seco
08-04-2008, 01:57 AM
Hi
i use zend studio 5.2
and i start with code that runs with me perfectly on other servers nad it gives me error says
Fatal error: Call to undefined function mysql_pconnect()

and that because of that line
$conn = mysql_pconnect($hostname_conn, $username_conn, $password_conn)

any idea why?

thanks in advance.

Sheldon
08-04-2008, 02:38 AM
Because this build of PHP does not support mysql_pconnect. Change to mysql_connect().

seco
08-04-2008, 05:31 AM
thanks for reply
also mysql_connect() gives the same message !!

chazzy
08-04-2008, 08:24 AM
the mysql extensions aren't enabled by default. check php.ini. also check that the extension was installed.