Fatal Error Call To Undefined Function Mysql_connect Iis
Contents |
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 fatal error call to undefined function mysql connect or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x
Php Mysql Iis
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 fatal error call to undefined function mysqli_connect() in php 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
Fatal Error Call To Undefined Function Mysql_connect() Xampp
'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 fatal error call to undefined function mysql_connect() windows 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 up or log in Sign up using Googl
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
Fatal Error: Call To Undefined Function Mysql_query()
this site About Us Learn more about Stack Overflow the company Business Learn
Fatal Error Call To Undefined Function Mysql_connect() Linux
more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question fatal error: call to undefined function mysql_select_db() 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 http://stackoverflow.com/questions/4817944/call-to-undefined-function-mysql-connect getting “PHP Fatal error: Call to 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 http://stackoverflow.com/questions/33908912/continually-getting-php-fatal-error-call-to-undefined-function-mysql-connect a .php file from a browser by going to localhost/testphp.php , 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 2
using php5.2,mysql 4.1 If this is your first visit, be sure to check out the http://board.phpbuilder.com/showthread.php?10371200-RESOLVED-i-am-Fatal-error-Call-to-undefined-function-mysql_connect()-using-php5-2-mysql-4-1 FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select https://www.webmasterworld.com/php/4393614.htm the forum that you want to visit from the selection below. Page 1 of 2 12 Last Jump to page: Results 1 to 15 of 21 fatal error Thread: [RESOLVED] i am Fatal error: Call to undefined function mysql_connect() using php5.2,mysql 4.1 Tweet Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Search Thread Advanced Search Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 02-08-2010,10:06 AM #1 thread_PHP View Profile View Forum Posts Senior call to undefined Member Join Date Jan 2006 Posts 323 [RESOLVED] i am Fatal error: Call to undefined function mysql_connect() using php5.2,mysql 4.1 hi all i am getting following error while i am using php 5.2.12 and mysql4.1 in windows Fatal error: Call to undefined function mysql_connect() please help me to solve my problem thanks in advance "Speak your truth quietly and clearly, and listen to others, even the dull and ignorant, they too have their story. " Reply With Quote 02-08-2010,10:25 AM #2 halojoy View Profile View Forum Posts Visit Homepage phpMaster Join Date Jun 2005 Location Europe Posts 2,992 Run a phpinfo() to see if the php_mysql extension module is loaded. If it is not, you should activate mysql extension. For example in php.ini: extension=php_mysql.dll PHP Code:
Apache2.4.18 (Win64) / PHP5.6.19 / MySQL5.7.11 / phpMyAdmin4.6.0 Reply With Quote 0
phpinfo();
?>