Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Call to undefined function mysql_connect()
Old 02-19-2007, 09:46 AM Call to undefined function mysql_connect()
afridy's Avatar
Extreme Talker

Posts: 196
Trades: 0
Hi,

I have setuped a iis webser under win2k3 svr with PHP installed.
up to now php is working very well.
today i installed mysql 4.1 and i tryed to connect to the server named localhost.

the follwoing error appear.

Call to undefined function mysql_connect() in E:\MySQL Projects\connect.php on line 2

Why this mysql statement is not working in the server?
any configuration requir?

Pls...
afridy is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-19-2007, 02:10 PM Re: Call to undefined function mysql_connect()
afridy's Avatar
Extreme Talker

Posts: 196
Trades: 0
Yes, it seems there is a sloution to this problem here http://drupal.org/node/27119

I did not checked it with my php server yet....
afridy is offline
Reply With Quote
View Public Profile
 
Old 02-19-2007, 08:45 PM Re: Call to undefined function mysql_connect()
metho's Avatar
Ultra Talker

Posts: 481
Location: Gold Coast - Brisbane QLD, Australia
Trades: 0
upload a file called phpinfo.php to the root folder. it's only contents will be:
PHP Code:
<?php
phpinfo
();
?>
Load this file in your browser (and refer to it whenever you have a php related problem).

Reply with the version of PHP you're running and whether you see any 'MySql' entries in phpinfo's loaded extensions.
__________________
I do
Please login or register to view this content. Registration is FREE
based.
Spend a lot of time in
Please login or register to view this content. Registration is FREE
.
And
Please login or register to view this content. Registration is FREE
chews up the rest.
metho is offline
Reply With Quote
View Public Profile Visit metho's homepage!
 
Old 02-20-2007, 12:22 AM Re: Call to undefined function mysql_connect()
afridy's Avatar
Extreme Talker

Posts: 196
Trades: 0
Quote:
Originally Posted by metho View Post
upload a file called phpinfo.php to the root folder. it's only contents will be:
PHP Code:
<?php
phpinfo
();
?>
Load this file in your browser (and refer to it whenever you have a php related problem).

Reply with the version of PHP you're running and whether you see any 'MySql' entries in phpinfo's loaded extensions.
Thanks Metho,

I double checked. there is no MYSQL in the phpinfo()

I also have removed the semicolon of ' ;extension=php_mysql.dll '

also the php.ini shows the extension folder as extension_dir = "./" Is this correct path?

i dont have a extensions folder ("C:\php\ext\") under my php installation. only php contain 3 folders call 'session data', 'uploadtemp' & 'backup'. there is no ext foler.

My problem is still there
afridy is offline
Reply With Quote
View Public Profile
 
Old 02-20-2007, 12:46 AM Re: Call to undefined function mysql_connect()
Experienced Talker

Posts: 38
Trades: 0
Quote:
Originally Posted by afridy View Post
also the php.ini shows the extension folder as extension_dir = "./" Is this correct path?
I'm not a windows expert, but I believe it's supposed to be

Quote:
extension_dir = "C:\PHP\ext"
__________________
--> Authors:
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
ArticleSniper is offline
Reply With Quote
View Public Profile Visit ArticleSniper's homepage!
 
Old 02-20-2007, 01:07 AM Re: Call to undefined function mysql_connect()
Ultra Talker

Posts: 256
Location: Auckland, New Zealand
Trades: 0
With windows I've been working off Apache Distributions like XAMPP, so it's been a while since I've installed a server by individual files but I recall PHP also supplying the extensions as a separate download to reduce the file size.

You will most likely have to download this and extract it into your PHP folder. You will then need to change php.ini so that the extension_dir points to the correct location.

You'll also need to check that you've uncommented the extension php_mysql.dll and also near the bottom of php.ini look over the [mysql] section to see if any changes need to be made, but most likely it all can be left blank to resort to default settings.

Cheers,

MC
__________________
#------------------------------signature---------------------------------------------------------------------------------#
Quote:
I am well recognised for what I don't do than what I do. Chores are just one of those things.
mastercomputers is offline
Reply With Quote
View Public Profile Visit mastercomputers's homepage!
 
Old 02-20-2007, 05:27 AM Re: Call to undefined function mysql_connect()
afridy's Avatar
Extreme Talker

Posts: 196
Trades: 0
Thanks article and master computer.

Finally i have come to this error.

>> unable to load dynamic library './php_mysql.dll' - The specified module could not be found. <<

I think now i sould try 'MASTERCOMPUTERS' suggestion.

i ll come back....
afridy is offline
Reply With Quote
View Public Profile
 
Old 02-20-2007, 01:31 PM Re: Call to undefined function mysql_connect()
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,898
Name: Keith Marshall
Location: Connecticut
Trades: 0
Quote:
Originally Posted by mastercomputers View Post
With windows I've been working off Apache Distributions like XAMPP, so it's been a while since I've installed a server by individual files but I recall PHP also supplying the extensions as a separate download to reduce the file size.
Yes - I think the extended php extention library is called PECL LIB and is a seperate download.
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Old 02-21-2007, 03:13 AM Re: Call to undefined function mysql_connect()
afridy's Avatar
Extreme Talker

Posts: 196
Trades: 0
Thanks every body fist of all,

I have downloaded the extension dlls and put every thing in correct place.
so i have overcome the error ;

unable to load dynamic library './php_mysql.dll' - The specified module could not be found.

But another error after this;

Unable to load dynamic library 'e:\php\extensions\php_mysql.dll' - The specified procedure could not be found.

"The specified procedure could not be found."
Whats wrong? Now what i should do friends?

Again i am running PHP 5 + mysql 5 + 2k3server + IIS6

Pls.....
afridy is offline
Reply With Quote
View Public Profile
 
Old 02-21-2007, 06:07 PM Re: Call to undefined function mysql_connect()
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
I think the error means that the PHP engine has called an internal procedure to load the mysql module and could not find it, Simply...
But this tells you where to put the extension.

In the unix world ./ means "in the current directory", like "." does.
So, it means that you must place your php_mysql.dll file in e:\php\extensions for the PHP engine to find it.

Or update the php.ini file to match another place where to look for the modules.

I can't give you more specific details, as I only run PHP on linux/bsd servers, and never tried to do that on a windows machine for the last 4 years...
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 02-22-2007, 01:27 PM Re: Call to undefined function mysql_connect()
afridy's Avatar
Extreme Talker

Posts: 196
Trades: 0
Thanks tripy for the comment. but i tried all your solutions. no result.

After searching the net for hours and hours i found that, if you try to find answer to this qustion you will end up banging the head against the wall.

Here is what i found :

PHP 5.0 + MySQL 5.0 + IIS6 + 2003 Will never work to gether.
that mean if you manage to get ride of the error "Unable to load dynamic library 'e:\php\extensions\php_mysql.dll' - The specified procedure could not be found. " then your must be some one special.

There is a nice 3 page discussion specially regarding the above error. pls have a look if you have time.
http://codewalkers.com/forum/index.p...=370&startat=0

I gonna go back to php 4 + mysql 4 = IIS 6 + 2K3SVR.

bye.
afridy is offline
Reply With Quote
View Public Profile
 
Old 02-23-2007, 01:09 AM Re: Call to undefined function mysql_connect()
jito's Avatar
MY LIFE IS 'i' LIFE

Posts: 565
Name: surajit ray
Location: inside the heart of my friends
Trades: 0
Why don't you try apache?
__________________
I am not smart, that's why i don't act smart


Please login or register to view this content. Registration is FREE
jito is offline
Reply With Quote
View Public Profile
 
Old 02-23-2007, 12:19 PM Re: Call to undefined function mysql_connect()
afridy's Avatar
Extreme Talker

Posts: 196
Trades: 0
Quote:
Originally Posted by jito View Post
Why don't you try apache?
Hai, Jito.

Apache may be the best. but i was trying iis for students .
afridy is offline
Reply With Quote
View Public Profile
 
Old 02-23-2007, 12:22 PM Re: Call to undefined function mysql_connect()
afridy's Avatar
Extreme Talker

Posts: 196
Trades: 0
Hai there.

I just removed PHP5 and MySQL5, downloded the binary version 4.4 from http://snaps.php.net/ and no trouble at all with IIS6 Under 3ksvr.

Bye Bye
afridy is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Call to undefined function mysql_connect()
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.44385 seconds with 12 queries