Home > Php Fatal > Php Fatal Error Call To Undefined Function Mysql_connect Windows

Php Fatal Error Call To Undefined Function Mysql_connect Windows

My active hard drives: F:\. All the best. FAQs! Delete any instance of php_mysql.dll that is not in the C:\PHP directory. this content

share|improve this answer edited Sep 18 '13 at 11:55 answered Sep 18 '13 at 11:40 Darius Miliauskas 1,1651129 add a comment| up vote -4 down vote i had the same problem Should I boost his character level to match the rest of the group? I'm using Apache and mysql. Log in or register to post comments Please help...

ITeachGeek 34.155 προβολές 11:22 Fixing Wordpress Fatal Error Problem - Διάρκεια: 5:10. I forgot to use localhost. This limits the possibility of older MySQL client API's being used with PHP. 3.Open your C:\%WIN%\php.ini file in a text editor (Notepad will work). Linked -4 Uncaught Error: Call to undefined function mysql_connect() 2787 How can I prevent SQL injection in PHP? 19 PHP/Apache: PHP Fatal error: Call to undefined function mysql_connect() -1 Fatal error:

In your test.php file, type these 3 lines and then load the file in your Internet browser like http://localhost/test.php (you should get a whole long list of php variables, settings, etc): mysql_error()); // are there any rows in the result? My browsers could still read php.ini with it in the php folder. You may have to register before you can post: click the register link above to proceed.

Contact MySQL | Login | Register The world's most popular open source database MySQL.com Downloads Documentation Developer Zone Documentation Downloads MySQL.com Developer Zone Forums Bugs Worklog Labs Articles Planet MySQL News PHP Code: //extensions_list.php

$list2=array_map Why do jet engines smoke?

I copied php.ini to apache root folder (C:\Program Files\Apache Group\Apache2) 2. I use this to create databases, schemas, tables etc. It turns out that the mysql.ini file in /etc/php.d only had a module name but needed a full path name. Click on Advanced system settings first then select the Advanced tab and then Environmental variables.

The file should be in the C:\php\ root folder. http://board.phpbuilder.com/showthread.php?10371200-RESOLVED-i-am-Fatal-error-Call-to-undefined-function-mysql_connect()-using-php5-2-mysql-4-1 once again you are amazing Log in or register to post comments Finally! So, in order to make it work I did the following step. I then uncommented: extension_dir="c:\php\ext" restarted IIS in the services again, and voila!

Search for the line that looks like --> ;extension=php_mysql.dll Change this line to --> extension=php_mysql.dll Uncomment: extension_dir="c:\php\ext" Save the modified php.ini file. 4. http://setiweb.org/php-fatal/php-fatal-error-call-to-undefined-function-mysql-create-db.php Log in or register to post comments In php.ini is the problem and the solution loloyd commented November 17, 2005 at 8:03am I also encountered the same problem and sarched/browsed around Well for me at least. –Conrad Lotz Aug 19 '12 at 17:57 add a comment| up vote 0 down vote SUCCESS!!!! I will look at the link you posted, thanks –Nikolas Jíša Dec 18 '11 at 15:28 @NikolasJíša I added another possible solution to my answer.

Copy C:\PHP\libmysql.dll and C:\PHP\ext\php_mysql.dll to the C:\%WIN%\system32 folder. and I had the same problem and after modify the php.ini in order to set the libraries directory of PHP, it worked correctly. http://php.net/manual/en/install.windows.extensions.php Another common solution seems to be to copy libmysql.dll and php_mysql.dll from c:\PHP to C:\Windows\System32. have a peek at these guys share|improve this answer answered Mar 3 '11 at 10:37 binaryLV 6,7521933 1 use phpinfo() to find out which php.ini is the right one. –Pekka 웃 Mar 3 '11 at 10:38

See more about installing MySQL extension in manual. Therefore, you only need to configure php to enable its encapsulating library for it to work. To start viewing messages, select the forum that you want to visit from the selection below.

There are tons of tutorials on getting PHP working with IIS.

Log in or register to post comments Simple steps but very effective......... trantt commented December 3, 2005 at 11:05pm I'm still having the same problem, can someone help me to resolve this problem? PHP5 :: Can't use mysql_*() functions"). Was the Boeing 747 designed to be supersonic?

Why is AT&T's stock price declining, during the days that they announced the acquisition of Time Warner inc.? Don't forget restart Apache before try again. After I modified with php.ini, I typed my html/php from MySQL book when I used dreamweaver. check my blog Call the page: extensions.php and run it.

What is the main spoken language in Kiev: Ukrainian or Russian? The path has to be exact. You can change this preference below. Κλείσιμο Ναι, θέλω να τη κρατήσω Αναίρεση Κλείσιμο Αυτό το βίντεο δεν είναι διαθέσιμο. Ουρά παρακολούθησηςΟυράΟυρά παρακολούθησηςΟυρά Κατάργηση όλωνΑποσύνδεση Φόρτωση... Ουρά παρακολούθησης Ουρά __count__/__total__ Fatal Output the Hebrew alphabet TeX capacity exceeded with beamer DDoS ignorant newbie question: Why not block originating IP addresses?