faqts : Computers : Programming : Languages : PHP : Database Backed Sites : MySQL

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

75 of 280 people (27%) answered Yes
Recently 4 of 10 people (40%) answered Yes

Entry

Fatal error: Call to undefined function: mysql_pconnect()

Jul 21st, 2005 03:55
Keyar Srinivasan, cal redd, elektri cic, http://keyarsrinivasan.blogspot.com


Hi,
It could be that mysql_pconnect is disabled. If mysql_connect doesn't 
work either, you most definitely need mysql support built in your php 
for this to work.
Try this....
In your php.ini:
[MySQL]
; Allow or prevent persistent links.
mysql.allow_persistent = On
This will set to 'on' for mysql.allow_persistent, ok but is mysql 
enabled.
And what about your configuration Command..
is your configure command looks something like that ?
'./configure' '--with-
mysql=/usr/local/mysql' ............................................
If you don't have --with-mysql it means that you cannot use mysql 
functions, so compil again PHP
with this option.
Thanks
Keyar