Jump to content

Archived

This topic is now archived and is closed to further replies.

JP128

Apache with PHP

Recommended Posts

What is this error for?
Fatal error: Call to undefined function mysql_connect()

Share this post


Link to post
Share on other sites
You need to enable the mysql extension in your php.ini file. Just remove the semi-colon from the beginning of the line.

Share this post


Link to post
Share on other sites
I have done that, and then some.


;extension=php_mbstring.dll
;extension=php_bz2.dll
;extension=php_curl.dll
;extension=php_dba.dll
;extension=php_dbase.dll
;extension=php_exif.dll
;extension=php_fdf.dll
;extension=php_filepro.dll
;extension=php_gd2.dll
;extension=php_gettext.dll
;extension=php_ifx.dll
;extension=php_imap.dll
;extension=php_interbase.dll
;extension=php_ldap.dll
;extension=php_mcrypt.dll
;extension=php_mhash.dll
;extension=php_mime_magic.dll
;extension=php_ming.dll
;extension=php_mssql.dll
;extension=php_msql.dll
extension=php_mysql.dll
;extension=php_oci8.dll
;extension=php_openssl.dll
;extension=php_oracle.dll
;extension=php_pgsql.dll
;extension=php_shmop.dll
;extension=php_snmp.dll
;extension=php_sockets.dll
;extension=php_sqlite.dll
;extension=php_sybase_ct.dll
;extension=php_tidy.dll
;extension=php_xmlrpc.dll
;extension=php_xsl.dll

Share this post


Link to post
Share on other sites
did you restart apache after you did? because php.ini is only read in once at startup so you would have to restart apache for it to know that you enabled the mysql extension.

Share this post


Link to post
Share on other sites
There is a an FAQ on this subject [a href=\"http://www.phpfreaks.com/forums/index.php?showtopic=95378\" target=\"_blank\"]here[/a].

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.