Board index   FAQ   Search  
Register  Login
Board index PHP PHP Installation

What the heck...mysql_connect

Forum for you who has PHP installation issues

Moderators: macek, egami, gesf

What the heck...mysql_connect

Postby Virtuoso » Fri Oct 22, 2004 12:17 pm

why is mysql_connect() an undefined function?
I'm trying to have my own webserver.

Virtuoso
User avatar
Virtuoso
php-forum Active User
php-forum Active User
 
Posts: 268
Joined: Mon Jul 21, 2003 7:05 am

Postby Alexej Kubarev » Fri Oct 22, 2004 12:22 pm

you need to have mysql installed... but i suppose that you do... what PHP version are you using? It might be so that you need to install a newer version of PHP so that it would have that function built-in..

Please give a bit more information about your server configuration..
OS, server soft, mysql and php versions.
Additional information is welcome..
User avatar
Alexej Kubarev
Site Admin
Site Admin
 
Posts: 2223
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län

Postby Virtuoso » Fri Oct 22, 2004 1:42 pm

Windows XP Professional
Microsoft ISS 5.1
Mysql Version: 4.0
PHP Version: 5.0.2

PHP does work if i do the echo something.
I also have no idea what I am doing.

Thanks,
Virtuoso
User avatar
Virtuoso
php-forum Active User
php-forum Active User
 
Posts: 268
Joined: Mon Jul 21, 2003 7:05 am

Postby Alexej Kubarev » Fri Oct 22, 2004 1:56 pm

Virtuoso wrote:I also have no idea what I am doing.


Well that sounds good :D
hehe.. Hmmz..
Lets see... I didnt like PHP5 but it should work.. did you use an install package or downloaded an archive?

Check that you have everything set correctly in PHP.ini
I kind of dont understand why mysql_connect doesnt work for you..
that should work thou :S
mysql_connect($dbhost,$dbuser,$dbpass);
User avatar
Alexej Kubarev
Site Admin
Site Admin
 
Posts: 2223
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län

Postby Virtuoso » Fri Oct 22, 2004 2:12 pm

uh...where should i find the php.ini?
It sure isn't in my PHP folder
User avatar
Virtuoso
php-forum Active User
php-forum Active User
 
Posts: 268
Joined: Mon Jul 21, 2003 7:05 am

Postby Alexej Kubarev » Fri Oct 22, 2004 3:07 pm

in wINDOWS folder :)

That means that you used install... hmmz... should work then :S
try PHP4 instead.. :)

Fully remove PHP5 first :)
User avatar
Alexej Kubarev
Site Admin
Site Admin
 
Posts: 2223
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län

Postby WiZARD » Wed Nov 03, 2004 5:58 am

Virtuoso wrote:uh...where should i find the php.ini?
It sure isn't in my PHP folder

try download http://www.php.net/get/php-5.0.2-Win32. ... m/a/mirror
after that unpack in c:\php folder
inside this folder you can see php.ini.
In PHP5 no matter there is your php.ini file in c:\php or c:\windows.....
Reccomend download manual in CHM format in this manual you can read about installation PHP5 under windows...
User avatar
WiZARD
Moderator
Moderator
 
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol


Return to PHP Installation

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron