- 论坛徽章:
- 0
|
我在打开PHP网页的时候有如下告错。
Fatal error: Call to undefined function: mysql_pconnect() in /var/www/html/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 357
在网上查到如下:
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.
##########################################
可我是个初级菜鸟,请高人指点一下,如何重新编译PHP ?
我的是Redhat 9.安装时自带的PHP。请有耐心的高手们多多指导。多谢谢。
祝大家新年愉快。 |
|