Hi,
I've setup an Apache 2.2.3, PHP 5.2.0, MySQL 5.0.27 on a Solaris 9 system.
The install appeared to go well. To test the Apache/PHP/MySQL integration,
I added a simple test.php to the Apache document folder, consisting of:
?php
phpinfo();
?
When I access the URL/test.php, it displays as
I try connecting to an existing mysql DB. The first time I directly called
mysql_connect with all required
params (Path/Database,User,Password) and established a connection without
problems.
Second time I have used a script that includes a self-written class
containing a few Database functions.
At 03:42 PM 2/2/2004 +0100, DiZEM PGC wrote:
I try connecting to an existing mysql DB. The first time I directly called
mysql_connect with all required
params (Path/Database,User,Password) and established a connection without
problems.
Second time I have used a script that includes a self-written
Hi,
I am using Apache 2 in Linux 8 .Whenever in my php script I want to
connect to mysql through mysql_connect() function a error occured.
My script is like that
$linlid=mysql_connect(localhost,user1,user1)or die(Connections
failed);
print Connected successfully;
The script writes
You need to install the php-mysql rpm. You can get this on your RedHat CD,
or through apt-get:
apt-get install php-mysql
Get apt here: http://apt.freshrpms.net/
Does the PHP project ever plan to do something as impressive as CPAN so
users won't have to reinstall or recompile just to extend its
Thanks!
I was able to get native mysql support by adding
extension=mysql.so
to php.ini. So now mysql_connect() works
John Coder wrote:
While Micah is correct, you do have mysql support on php but as a dbs
not the built in php fuctions. Therefore you must use the dbx functions
instead.
Hello,
I've a rather complete php install on redhat 7.3, yet I cant't get php
to connect to mysql. I get:
Fatal error: Call to undefined function: mysql_connect() in
...
It seems that the necessary packages are installed:
[root@axon ~]# rpm -qa | grep php
php-4.1.2-7.3.4
It doesn't appear you have the PHP MySQL functions installed. When you run
phpinfo() you should get something like:
mysql
MySQL Supportenabled
Active Persistent Links1
Active Links1
Client API version3.23.39
MYSQL_MODULE_TYPEbuiltin
MYSQL_SOCKET/var/lib/mysql/mysql.sock
MYSQL_INCLUDE
MYSQL_LIBS
While Micah is correct, you do have mysql support on php but as a dbs
not the built in php fuctions. Therefore you must use the dbx functions
instead.
John Coder
On Sat, 2002-11-02 at 14:35, Micah Stevens wrote:
It doesn't appear you have the PHP MySQL functions installed. When you run