Fatal Error Call To Undefined Function Mysql Connect Iis7
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring call to undefined function mysql_connect() windows developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question fatal error call to undefined function mysql_connect() in php x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Call to undefined function mysql_connect() up vote 1 down vote favorite getting error Call to undefined function mysql_connect() tring to run php website on IIS 7.5. php iis-7.5 share|improve this question edited Jul 12 '12 at 17:33 hakre 134k26216387 asked Jan 27 '11 at 14:58 coure2011 9,24144138243 add a comment| 5 Answers 5 active oldest votes up vote 2 down vote accepted Locate the correct php.ini file (check phpinfo() if in doubt) Locate the line saying extension=php_mysql_libmysql.dll and make sure it is uncommented (no ; in front) Save Restart web server share|improve this answer answered Jan 27 '11 at 15:02 Pekka 웃 304k93697913 add a comment| up vote 1 down vote Had the same problem on Windows 7 and IIS My solution was to add a registry key where to read the php.ini from: http://php.net/manual/en/configuration.file.php Computer needed a restart after the key was added. Other with similar solution but for Apache Command Line PHP mysql_connect() Error share|improve this answer edited Aug 8 '11 at 7:43 answered Aug 7 '11 at 21:23 Fredrik 464 add a comment| up vote 1 down vote On Linux (Ubuntu here specifically) make sure the package php5-mysql is installed. (And restart apache after doing so, with service apache2 restart or /etc/init.d/apache2 restart) share|improve this answer answered Oct 19 '11 at 10:24 Tails 659 add a comment| up vote 0 down vote I realize this thread is very old, but I Googled this exact error for hours including several articles here before finding a solution elsewhere... On Windows, make sure you add a server environment variable telling it which PHP.INI file to load on startup. PHPRC = [path to your php.ini] share|improve this answer answered Feb 16 '12 at 6:32 Brian 417 add a comment| up vote 0 down vote See that the version 5.2 still support mysql but starting with 5.4, php dumped mysql and mysqli for mysqlnd so this may cause your problem(at least it was for me) share|improve this answer answered May 9 '13 at 20:00 HellBaby 196215 add a comment| Your Answer draft saved draft discarded Sign
Web Platform Installer Get Help: Ask a Question in our Forums More Help Resources Blogs Forums Home IIS.NET Forums Partner and Community Forums PHP Community PHP Fatal error: Call to undefined function mysql_connect() PHP Fatal error: Call to undefined function mysql_connect() RSS 3 replies Last post Mar 22, 2016 07:42 PM by DropPhone ‹ Previous Thread|Next Thread › Print Share Twitter Facebook Email Shortcuts Active Threads Unanswered Threads http://stackoverflow.com/questions/4817944/call-to-undefined-function-mysql-connect Unresolved Threads Advanced Search Reply PacoRenteria 1 Post PHP Fatal error: Call to undefined function mysql_connect() Jan 22, 2015 05:43 PM|PacoRenteria|LINK Greetings Fellows, I am having this problem in just one page! PHP Fatal error: Call to undefined function mysql_connect() I am using IIS8.0 with PHP 5.3, the problem is ONLY https://forums.iis.net/t/prev/1230334 on one page and I have tried everything that has come to my mind. Even replaced the code with other copied from a working page and surprisingly, it doesn't work. I have checked and double checked the page sintaxis and still doesn't work. ¿any ideas? Thx in advance. mysql mssql_connect php Reply DropPhone 295 Posts MicrosoftModerator Re: PHP Fatal error: Call to undefined function mysql_connect() Jan 26, 2015 05:44 PM|DropPhone|LINK Just checking: is the extension=php_mysql.dll enabled inyour php.ini file? You may also need to uncomment the extension=php_pdo_mysql.dll and the extension=php_mysqli.dll lines as well. Thx! --E. mysql mssql_connect php Reply Onret 1 Post Re: PHP Fatal error: Call to undefined function mysql_connect() Mar 09, 2016 07:30 AM|Onret|LINK I have the same problem (exept running on iis10 and have php 7.0.3). I could only find "extension=php_mysqli.dll" in my .ini file and have tried to write in "extension=php_mysql.dll" and paste a downloaded ph
: Call to undefined function mysql connect() The SitePoint Forums have moved. You can now find them here. This forum is now closed to new posts, but you can browse existing content. You can find out more information about the move http://www.sitepoint.com/forums/showthread.php?288542-Fatal-error-Call-to-undefined-function-mysql-connect() and how to open a new account (if necessary) here. If you get stuck you can get support by emailing forums@sitepoint.com If this is your first visit, be sure to check out the FAQ by clicking the link above. http://blondr.blogspot.com/2006/11/set-up-iis-7-w-mysql-and-php-5.html You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. SitePoint Sponsor User Tag List Results 1 call to to 12 of 12 Thread: Fatal error : Call to undefined function mysql connect() Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode Aug 8, 2005,15:40 #1 Dillio View Profile View Forum Posts SitePoint Member Join Date Aug 2005 Posts 5 Mentioned 0 Post(s) Tagged 0 Thread(s) Fatal error : Call to undefined function mysql connect() Any help on this would be great I have followed the guidelines call to undefined for setting up PHP with MYSQL and IIS out of the Build Your own Database Driven Website to a T and still I receive the infamous Fatal error : Call to undefined function mysql_connect() in c: inetpub\wwwroot\...... I have triple checked the setup files and everything seems right. I have been reading forums on sitepoint for last two days trying to troubleshoot and I am running out of ideas. When I run phpinfo() function their is nothing related to MYSQL. MYSQL is still not loading in PHP and I just don't know why. I am super excited to progress within the book into more challengin subject matter but can't break through the examples in Chapter 3 that deal with using MYSQL with PHP. Any advice at all would be greatly appreciated.B Ryan Aug 8, 2005,16:13 #2 zfade3 View Profile View Forum Posts SitePoint Enthusiast Join Date Jul 2005 Location Endor Posts 78 Mentioned 0 Post(s) Tagged 0 Thread(s) check your php.ini file to see if there is any mysql extension that is commented out. I think they did a change in the more recent versions of php so that mysql isn't default enabled. Aug 8, 2005,16:30 #3 Dillio View Profile View Forum Posts SitePoint Member Join Date Aug 2005 Posts 5 Mentioned 0 Post(s) Tagged 0 Thread(s) I have uncommented (by removing the semicolin) extension=php_mysql.dll. I have also tried uncommenting both extension=php_mysql.dll and extens
a web developer.As all of us are talking about the new coming Windows Vista, I decided to dedicate my first post to guide you all on how to setup IIS 7 along with MySQL and PHP 5. Before entering the venture myself, I searched the internet for tutorials on how about to do that, however, the closest i got was to install IIS 7, PHP and MySQL, however, everywhere i looked the PHP didn't work with MySQL.I decided to go on the ride anyways, hoping to get it to work, and fortunately, i did ;).Here is how i was about doing that:First step, IIS 7.I have Windows Vista RTM 64bits, thus this guide will show all the steps required to set it up on Vista 64bits, however, i will try mention all the steps that 32bit users should accomplish instead.In order to set IIS 7 up, please go to Start->Control Panel->Programs->Turn Windows features on or off.see yellow mark on the picture belowInside the window that popped up, Look in the list for Internet Information Services. and check the box next to it.Under "Internet Information Services"->"Web Management Tools" check "ISAPI Extensions".Click ok and wait for it to install IIS 7. When finished close the Control Panel window.That's it, IIS 7 is all set, in order to confirm that, you can try to go to http://localhost in your favorite browser.Next step: PHP 5.Because i was using the 64bit edition of Vista, instead of downloading the regular distribution from php.net i downloaded a 64bit version from http://www.fusionxlan.com/PHPx64.php, Please download the zip package, as of this time, the latest version is 5.2.0People who are using the 32bit edition of Vista, please download the zip package from http://www.php.net/downloads.php.Unzip the zip to your drive, i used C:\php. now inside C:\php you will find a file named php.ini-dist.copy this file to c:\windows\ and rename it to php.ini (erase the -dist part).Now open the php.ini in notepad.Inside the file,