My PHP script gives the error ‘Call to undefined function: mysql_connect()’

My PHP script gives the error ‘Call to undefined function: mysql_connect()’

This is usually due to a faulty php.ini file causing the PHP MySQL functions to be undefined. A custom php.ini file should not need to contain more than a very few lines to override the specific necessary directives. Using a php.ini found on other webservers or examples given on PHP-related websites will likely cause problems such as this.



Similar posts you may find useful..:

Fatal error: Allowed memory size of 8388608 bytes exhausted

How do I query a MySQL database from a PHP script?

How to create a custom php.ini file

Quick Start Guide for new Web Hosting Customers

Line Break

Author: Doug (70 Articles)

Account Manager at Pixel Internet, Doug has been with us from day one. With over 10 years experience working in the web design and search engine optimisation industry, Doug's input and contribution to the growth of the company has been invaluable.

1 Comment to “My PHP script gives the error ‘Call to undefined function: mysql_connect()’”

  1. Radman says:

    Every time i come here I am not dissapointed, nice post

Leave a Reply

Search Blog

The Cloud

Pixel Internet specialise in web hosting for the following Open Source software packages, many of which include 'one-click-installation' via your control panel!

Click on a link below for more information regarding these packages and what we can offer.

Close this panel