Home >Backend Development >PHP Tutorial >Setting method to enable PHP to call mysql related functions in Zend studio for eclipse_PHP tutorial
If you call mysql_connect directly, the following error will appear: Fatal error: Call to undefined function mysql_connect()
Solution,
Find the location of zend studio php.ini
My zend studio is installed in D:Program Files
So the location of php.ini is: D:Program FilesZendZend Studio for Eclipse - 6.0.0pluginsorg.zend.php.debug.debugger.win32.x86_5.2.12.v20071210resourcesphp5
Create a new ext folder in this folder ,
and copy php_mysql.dll to this folder,
modify php.ini and add the following in it
extension_dir="D:Program FilesZendZend Studio for Eclipse - 6.0.0pluginsorg.zend.php.debug. debugger.win32.x86_5.2.12.v20071210resourcesphp5ext"
extension=php_mysql.dll
With the above modifications, the problem is perfectly solved.