php5 and mysql_connect
Hi All, i have installed php5 and mysql on 9.1 and when i use php to connect to mysql i get the following error: Fatal error: Call to undefined function mysql_connect() Why is this happening and how do i fix it? My php script is correct i double checked. Thanks Regards _____________________________________________________________________ For super low premiums, click here http://www.dialdirect.co.za/quote
Hi, I am sorry I do not know exactly what might be reason of your problem, but could you please tell me where you got PHP5 RPMs from? PS. Have you installed php_mysql module?
Hi All,
i have installed php5 and mysql on 9.1 and when i use php to connect to mysql i get the following error:
Fatal error: Call to undefined function mysql_connect()
Why is this happening and how do i fix it?
My php script is correct i double checked.
************************************************ *** with best regards *** Andrei Verovski (aka MacGuru) *** Mac, Linux, DTP, Programming Web Site *** *** http://snow.prohosting.com/guru4mac/ ************************************************
Alle 12:45, domenica 5 dicembre 2004, it clown ha scritto:
Hi All,
i have installed php5 and mysql on 9.1 and when i use php to connect to mysql i get the following error:
Fatal error: Call to undefined function mysql_connect()
Why is this happening and how do i fix it?
My php script is correct i double checked.
Have you enabled the php_mysql extension on the php.ini file? Starting from PHP5 the mysql extension does not come bundled, so you have to add it to the configuration. I think also that's better to install php5 not from rpms but directly compiling it, cause the prms versions sometimes are not complete. Check out if php_mysql extension is enabled, and of course if you have that file somewhere.
Hi
I did compile php5.I did add: extension=mysql.so to my
php.ini file but no luck. When i run php -m i recieve:
[PHP Modules]
ctype
dom
iconv
libxml
pcre
posix
session
SimpleXML
SPL
SQLite
standard
tokenizer
xml
[Zend Modules]
why is mysql not there?
Regards
On Sun, 5 Dec 2004 15:40:11 +0100
Davide Dolcini
Hi All,
i have installed php5 and mysql on 9.1 and when i use
Alle 12:45, domenica 5 dicembre 2004, it clown ha scritto: php
to connect to mysql i get the following error:
Fatal error: Call to undefined function mysql_connect()
Why is this happening and how do i fix it?
My php script is correct i double checked.
Have you enabled the php_mysql extension on the php.ini file? Starting from PHP5 the mysql extension does not come bundled, so you have to add it to the configuration.
I think also that's better to install php5 not from rpms but directly compiling it, cause the prms versions sometimes are not complete.
Check out if php_mysql extension is enabled, and of course if you have that file somewhere.
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
_____________________________________________________________________ For super low premiums, click here http://www.dialdirect.co.za/quote
participants (3)
-
Andrei Verovski (aka MacGuru)
-
Davide Dolcini
-
it clown