Fatal Error Call To Undefined Function Mysql_connect Iis 7.5
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 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
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 Unresolved Threads Advanced Search Reply PacoRenteria 1 Post PHP Fatal error: Call http://stackoverflow.com/questions/28101482/php-fatal-error-call-to-undefined-function-mysql-connect-in-iis 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 on one page and I have tried everything that has come to my mind. Even replaced the https://forums.iis.net/t/prev/1230334 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 php_mysql.dll in the /ext/ directory. Didn't work. I have also uncommented the lines you suggested. I would really appreciate your help. Reply DropPhone 295 Posts MicrosoftModerator Re: PHP Fatal error: Call to undefined function mysq
mysql i get a PHP error. PHP Fatal error: Call to undefined function mysql_connect() in C:\\inetpub\\wwwroot\\firstsql.php on line 8 It seems as though php does https://www.sitepoint.com/community/t/php-wont-connect-to-mysql/78510 not recognize the mysql function call from this code: $link = mysql_connect("localhost", "root", "password"); I have searched through many forums and threads from people with similar problems but cant seem to find a solution.Here is http://wiki.iransite.com/ViewArtices.aspx?id=85446&tag=%D8%B3%D9%88%D8%A7%D9%84:-()Call-to-undefined-function-mysql_connect- what I have tried so far: Uncommented mysql line in php.ini Taken a copy of libmysql.dll placing it in my PHP directory as well as my sys32 directory Taken a copy of php_mysql.dll from PHP/ext fatal error and putting it in my sys32 dir Restarting IIS multiple times both my PHP dir and mysql/bin dir are in my PATH variable I am not sure what else to try,Thanks in advance for any help thenetminder33 2011-02-21 19:47:55 UTC #2 No, neither mysql or mysqli are listed in the array. ScallioXTX 2011-02-21 17:56:27 UTC #3 In what directories are those programs installed? For some reason Win7 can behave oddly if fatal error call you install them in the program files folder (or program files (x68) for that matter)Also, do you have a firewall running? If so, does it work if you disable the firewall?Note that windows 7 runs a firewall by default if I'm not mistaken. Also take a look at that one. thenetminder33 2011-02-21 18:00:58 UTC #4 Thank you for the prompt response! PHP is in C:\PHP5Mysql is in C:\Program Files\MySQl\MySQL server 5.5Where would you recommend moving it to? My Win7 firewall is off but I have a 3rd party firewall that I will check to make sure there is an exception to.I do remember checking a "create exception in firewall" box during mysql configuration though. Edit**mysql.exe already has a full permission in my firewall ScallioXTX 2011-02-21 18:26:17 UTC #5 From what I read that should be okay.Are you sure you modified the correct php.ini ?Use phpinfo() to see which php.ini php uses. thenetminder33 2011-02-21 18:29:38 UTC #6 Phpinfo() has two results regarding php.ini (i'm not sure which one you want) Configuration File (php.ini) Path-- C:\\Windows Loaded Configuration File-- C:\\php5\\php.ini ScallioXTX 2011-02-21 18:41:06 UTC #7 So you uncommented ;extension=php_mysql.dll in C:\php5\php.ini and restarted IIS after you did that? If so, I'm at the loss where the problem may be. There is a tutoria
Call to undefined function mysql_connect() in C:\inetpub\wwwroot\chapter10\savedb.php on line 10 نظیماتی که در php.ini انجام دادم ; Directory in which the loadable extensions (modules) reside. ; http://php.net/extension-dir ; extension_dir = "./" ; On windows: extension_dir = "f:\php\ext" php من در درایو f هست . یعنی خودم اونجا نصب کردم . همونطور که در کد زیر میبینید این دوتا هم فعال هستن : [PHP_MYSQL] extension=php_mysql.dll [PHP_MYSQLI] extension=php_mysqli.dll همچنین از داخل پوشه MySQL Server 5.1 فایل libmySQL.dll رو در c:\windows\system32 هم copy کردم ولی بازم همین ارور رو میگیرم : Fatal error: Call to undefined function mysql_connect() in C:\inetpub\wwwroot\chapter10\savedb.php on line 10 از IIS 7.5 در windows 7 استفاده میکنم با اجرای کدهای php هم هیچ مشکلی ندارم و به راحتی با MySQL Command Line Client میتون دستورات sql رو اجرا کنم منظورم اینه که فک نمیکنم مشکل با اینا باشه . تابع ()phpinfo رو هم اجرا کردم در صفحه ای که باز شد تنها اطلاعات زیر رو در مورد mysql پیدا کردم http://up.iranblog.com/Files73/4b6026ed9a774432b5a2.JPG حال چه کنم ؟؟؟!! با تشکر Woeful Iaukshphp و Mysql را خودتان نصب کردهاید یا با برنامههایی مثل wamp کار میکنید؟ پیشنهاد میکنم با wamp کار کنید و ببینید باز هم این مشکل وجود دارد یا نه. Iaukshسلام منم دقيقا همين مشكل رو دارم قبلا كه از اين تابع استفاده ميكردم هيچ مشكلي نبود ولي الان همون ارور شما رو ميده.:عصبانی++: ضمنا فكر كنم كساني كه تجربه برنامه نويسي با php رو ندارند اظهار نظر نكنن بهتر باشه چون تابلو ميشن كه چيزي نميدونن.:لبخند: Iaukshسلام متشکر از جوابها php و Mysql را خودتان نصب کردهاید یا با برنامههایی مثل wamp کار میکنید؟ خودم نصب کردم راه دیگه ای نداره چون اون wamp حجمش 50meg هست :گریه: ضمنا فكر كنم كساني كه تجربه برنامه نويسي با php رو ندارند اظهار نظر نكنن بهتر باشه چون تابلو ميشن كه چيزي نميدونن. منظورتون کیه ؟؟؟؟:عصبانی::لبخند: