Discussion:
[PHP-INSTALL] mysql_connect does not work
o***@verizon.net
2008-09-04 22:45:53 UTC
Permalink
Hi,

I have PHP5 running on a Debian Linux machine. MySQL is also running. But when I use the function "mysql_connect()" in PHP I get the message

Fatal error: Call to undefined function mysql_connect() in /var/www/php/test.php on line 10

Is this a setp up issue?

Murat
o***@verizon.net
2008-09-04 22:46:05 UTC
Permalink
Hi,

I have PHP5 running on a Debian Linux machine. MySQL is also running. But when I use the function "mysql_connect()" in PHP I get the message

Fatal error: Call to undefined function mysql_connect() in /var/www/php/test.php on line 10

Is this a setp up issue?

Murat
RichAppsConsulting
2008-09-08 08:15:44 UTC
Permalink
Post by RichAppsConsulting
Hi,
Run this function from your web server <?php phpinfo(); ?> and try to find
mysql. If MySQL is enabled then you can find MySQL detail vieww other
wise won't.
By defualt in php5 it is not enabled. You have to enabled mysql by
yourself.
I have PHP5 running on a Debian Linux machine. MySQL is also running. But
when I use the function "mysql_connect()" in PHP I get the message
Fatal error: Call to undefined function mysql_connect() in
/var/www/php/test.php on line 10
Is this a setp up issue?
Murat
-----

http://www.richappsconsulting.com/ Rich Internet Applications
We code fast...
--
View this message in context: http://www.nabble.com/mysql_connect-does-not-work-tp19321765p19367775.html
Sent from the Php - Install mailing list archive at Nabble.com.
o***@verizon.net
2008-09-04 22:46:19 UTC
Permalink
Hi,

I have PHP5 running on a Debian Linux machine. MySQL is also running. But when I use the function "mysql_connect()" in PHP I get the message

Fatal error: Call to undefined function mysql_connect() in /var/www/php/test.php on line 10

Is this a setp up issue?

Murat
Tommy Peterson
2008-09-05 02:11:32 UTC
Permalink
Yes, it is a setup issue.
Post by o***@verizon.net
Hi,
I have PHP5 running on a Debian Linux machine. MySQL is also running.
Post by o***@verizon.net
But when I use the function "mysql_connect()" in PHP I get the
message
Fatal error: Call to undefined function mysql_connect() in
Post by o***@verizon.net
/var/www/php/test.php on line 10
Is this a setp up issue?
Murat



____________________________

Tommy Peterson,

NCEE/AC/NISL Web Developer/DBA

555 13th St, NW

Washington, DC 20004

Telephone:

(o) 202-783-3668 X2146

(c) 703-608-6898
RichAppsConsulting
2008-09-08 08:03:10 UTC
Permalink
Run this function from your web server <?php phpinfo(); ?> and try to find
mysql. If MySQL is enabled then you can find its detail view other wise
won't.

By defualt in php5 it is not enabled.you have to enabled mysql by yourself.
Post by o***@verizon.net
Hi,
I have PHP5 running on a Debian Linux machine. MySQL is also running. But
when I use the function "mysql_connect()" in PHP I get the message
Fatal error: Call to undefined function mysql_connect() in
/var/www/php/test.php on line 10
Is this a setp up issue?
Murat
-----
[url="http://www.richappsconsulting.com/"]Rich Internet Applications[/url]
[b]We code faster...[/b]
--
View this message in context: http://www.nabble.com/mysql_connect-does-not-work-tp19321776p19367637.html
Sent from the Php - Install mailing list archive at Nabble.com.
Loading...