Home  >  Article  >  Backend Development  >  Setting method to enable PHP to call mysql related functions in Zend studio for eclipse_PHP tutorial

Setting method to enable PHP to call mysql related functions in Zend studio for eclipse_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 15:48:46816browse

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.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/319659.htmlTechArticleIf you call mysql_connect directly, the error solution will appear: Fatal error: Call to undefined function mysql_connect(), find zend The location of studio php.ini is my zend stud...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn