Fatal Error Call To Undefined Function Mysql_connect In Iis 7
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 call to undefined function mysql_connect() windows Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs fatal error call to undefined function mysql_connect() in php Documentation Tags Users Badges Ask Question 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 PHP Fatal error: Call to undefined function mysql_connect() in IIS up vote 3 down vote favorite The same code works in Xampp. But if try to run it on IIS below error occurs. "PHP Fatal error: Call to undefined function mysql_connect()" I'm stuck with this error from couple of days. I tried changing my php.in . My phpinfo.php points to correct .ini file Please suggest me a way. part of my php.ini file: extension=php_mbstring.dll extension=php_exif.dll extension=php_mysql.dll extension=php_mysqli.dll extension=php_mysql_libmysql.dll php share|improve this question asked Jan 23 '15 at 1:07 Venkat Kiran 184 1 Does (or $ php -i) show MySQL support is enabled? –Jacob Budin Jan 23 '15 at 1:11 Does mysqli or PDO work instead? –Morgan Green Jan 23 '15 at 1:33 Check this article , webmasterworld.com/php/4393614.htm –Kanishka Panamaldeniya Jan 23 '15 at 3:13 Try copy your php.ini to the C:\Windows directory –Kanishka Panamaldeniya Jan 23 '15 at 3:14 add a comment| active oldest votes Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook. Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Browse other questions tagged php or ask your own question. asked 1 year ago viewed 817 times Related 18Call to undefined function mysql_connect0Fatal error: Call to undefined function mysql_connect() cannot solve-1Fatal error: Call to undefined function mysql_connect()4php+mysql Fatal error: Call to undefined function mysql_connect() in0Fatal error: Call to undefined function mysql_connect() and The mysqli extension is missing0Continually getting “PHP Fatal error: Call to undefined function mysql_connect()” in iis 71Fatal error Call to undefined function mysql_connect()-1How to solve this error [Fatal error: Uncaught Er
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 developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question 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 Continually getting “PHP Fatal error: Call to http://stackoverflow.com/questions/28101482/php-fatal-error-call-to-undefined-function-mysql-connect-in-iis undefined function mysql_connect()” in iis 7 up vote 0 down vote favorite I am very new to web development but am required to use iis 7 and php to pull data from a remote mysql database to be displayed in a series of webpages. I installed iis 7 along with php fine and can run phpinfo() through a .php file from a browser by going to localhost/testphp.php http://stackoverflow.com/questions/33908912/continually-getting-php-fatal-error-call-to-undefined-function-mysql-connect , however, when I tried to connect to a mysql server using the function mysql_connect in another .php file I got the error in the title. I am running php 5.6.15 and can't find much in the way of an answer for this. I also don't seem to have a php.ini file (let alone know if I should have one) and phpinfo() tells me that my loaded configuration file is "(none)". I'm at my wit's end trying to find a solution to this with as little experience as I have. Does anyone know how to solve this problem? If so I would much appreciate any help I can get. Thank you! php mysql iis iis-7 share|improve this question asked Nov 25 '15 at 5:15 Tesnich 84 1 php.net/manual/en/function.mysql-connect.php That method is deprecated. If you have a page with phpinfo() make sure you have the proper module installed and loaded in order to use the function. –Kris Oye Nov 25 '15 at 5:20 Possible duplicate of Why shouldn't I use mysql_* functions in PHP? –Memor-X Nov 25 '15 at 5:30 Possible duplicate of Fatal error: undefined function - why? –Vladislav Rastrusny Nov 25 '
: 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 http://www.sitepoint.com/forums/showthread.php?288542-Fatal-error-Call-to-undefined-function-mysql-connect() you can browse existing content. You can find out more information about the move and how to open a new account (if necessary) here. If you get stuck you can get support by http://blondr.blogspot.com/2006/11/set-up-iis-7-w-mysql-and-php-5.html emailing forums@sitepoint.com If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register call to 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 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 call to undefined 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 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 Mentione
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, look for the line ;extension=php_mysql.dll and delete the semi-color (;) from the beginning of the line.Now save and close the file.Next, let's copy the dll to the right place...Go to c:\php\ext and copy the file php_mysql.dll. Now go to C:\Windows\System32 and paste the dll there.When asked to, Click continue to gain Administrator privilege.Now let's configure IIS to work with our PHP.Go to start->run and start InetMgr.exe (IIS M