onlyican Posted September 20, 2006 Share Posted September 20, 2006 Hey guysI just downloaded Zend StudioGot to say, I am loving this shing ding (Tryna cut down on my swearing)BUTif I type a MySQL function, it comes up with an errorSo this tells me that the MySQL is not set up in the settingsI looked for the php.ini fileand it is basicIf you know Zend Studio ya know wha I meanIf notThen under php5The php ini is[quote]zend_extension_ts=C:\Program Files\Zend\ZendStudio-5.2.0\lib\php5\ZendDebuggerLocal.dllzend_debugger.allow_hosts=127.0.0.1/32session.save_path=C:\Program Files\Zend\ZendStudio-5.2.0\tmp[/quote]I done a search for other php.ini filesTheres one in php4 (basicly the same)and one somewhere else, which is blankSo anyone know how I can get this to work with MySQL? Quote Link to comment https://forums.phpfreaks.com/topic/21421-zend-studio-windows-and-mysql/ Share on other sites More sharing options...
Daniel0 Posted September 20, 2006 Share Posted September 20, 2006 Are you talking about its internal debugger? Quote Link to comment https://forums.phpfreaks.com/topic/21421-zend-studio-windows-and-mysql/#findComment-95564 Share on other sites More sharing options...
onlyican Posted September 20, 2006 Author Share Posted September 20, 2006 yes, sorry Quote Link to comment https://forums.phpfreaks.com/topic/21421-zend-studio-windows-and-mysql/#findComment-95572 Share on other sites More sharing options...
Daniel0 Posted September 20, 2006 Share Posted September 20, 2006 Make sure the MySQL extension is enabled.Could you possibly paste the error here? Quote Link to comment https://forums.phpfreaks.com/topic/21421-zend-studio-windows-and-mysql/#findComment-95598 Share on other sites More sharing options...
onlyican Posted September 20, 2006 Author Share Posted September 20, 2006 how do I enable the MySQL extension??the full code is [code]<?php$db = mysql_connect("localtion","root","root");mysql_select_db("market",$db);?>[/code]This is something I just done quicklyThen I hit DebugThe error on the Debug Output is[quote]Fatal error: Call to undefined function mysql_connect() in PHPDocument1 on line 2[/quote]Now, my first post has the php.ini file. SO i am lost Quote Link to comment https://forums.phpfreaks.com/topic/21421-zend-studio-windows-and-mysql/#findComment-95611 Share on other sites More sharing options...
wildteen88 Posted September 20, 2006 Share Posted September 20, 2006 You need to edit the php.ini and configure the [b]extension_dir[/b] directive to point to the PHP extensions folder. The extension folder is located in side the folder you have installed PHP to. So if you have installed PHP in the root of your hard drive in a folder called php. Then the path to the PHP extension folder will C:\php\extThe next step is to remove the semi-colon (;) from the the start of [b]extension=php_mysql.dll[/b] Quote Link to comment https://forums.phpfreaks.com/topic/21421-zend-studio-windows-and-mysql/#findComment-95614 Share on other sites More sharing options...
onlyican Posted September 20, 2006 Author Share Posted September 20, 2006 mmm, one problem, my php.ini is posted aboveHow would I do that? Quote Link to comment https://forums.phpfreaks.com/topic/21421-zend-studio-windows-and-mysql/#findComment-95647 Share on other sites More sharing options...
wildteen88 Posted September 20, 2006 Share Posted September 20, 2006 Ah, Umm I'm not sure. I guess it'll be a good idea to check out the zend studio manual. Should be discussed in their somewhere Quote Link to comment https://forums.phpfreaks.com/topic/21421-zend-studio-windows-and-mysql/#findComment-95657 Share on other sites More sharing options...
Daniel0 Posted September 21, 2006 Share Posted September 21, 2006 I think adding the lines what wildteen mentions should make it work.Or you could install [url=http://zend.com/platform]Zend Platform[/url] and configure Zend Studio to use that as its debugger. It is free for development purposes.That would give you more features too. Like profiling. Quote Link to comment https://forums.phpfreaks.com/topic/21421-zend-studio-windows-and-mysql/#findComment-96245 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.