Hi,
my linux server contain php and mysql as well and it is working indivisually
i write code in php but the connection script not working
error display error:-mysql_connect() is not defined.
when i see the information of phpinfo
it shows dbx information not mysql information,
ples help so that i can connect php with mysql.
regards,
Nilotpal
php coding not supporting mysql_connect()
Moderator: General Moderators
how to compile php with mysql
please tell me how to compile php with mysql.
thankx.
thankx.
http://se.php.net/manual/en/install.linux.php
Take a peek at the first usercomment.
Take a peek at the first usercomment.
Code: Select all
./configure --prefix=$prefix --with-thttpd=../thttpd-2.21b --with-config-file-path=$prefix/lib/php --with-zlib --with-bz2 --with-gd --with-ttf --with-mysql --with-mysql-sock=/var/run/mysqld/mysqld.sock --disable-rpath --disable-ipv6 --enable-static --enable-roxen-zts --enable-track-vars --enable-force-cgi-redirect --with-gettextmy php is compiled with mysql but.....
php is compiled with mysql as i see the information on phpinfo but mysql_connect() is not working with php code,my linux version is 8.0 ,
ples help.
ples help.
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
Re: my php is compiled with mysql but.....
There are lots of linux flavours - a version number doesn't really tell us anything.nilotpal wrote:my linux version is 8.0
What is your configure information (the bit that looks like what JAM posted). The fact that mysql_connect() is not defined indicates that PHP has not been compiled with MySQL support.nilotpal wrote:php is compiled with mysql as i see the information on phpinfo but mysql_connect() is not working
Mac