Re: PHP: mysql_connect() undefined function
- From: Jan Dinger <jan.dinger@xxxxxxxx>
- Date: Thu, 17 Aug 2006 14:47:14 +0200
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Stephen wrote:
On Thu, Aug 17, 2006 at 12:28:22PM +0200 or thereabouts, Paolo Pantaleo wrote:
[...]
I think the error says that PHP doesn't know the function, not that
there is an error executing the function.
So, finally googling around I found the solution:
in /etc/php/apache2/php.in
I uncommented the line
extension=mysql.so
This is because [so I read] the mysql support is bult-in for version
4, but not for version 5.
Take a look in your phpinfo. make a file with the follow code:
<?php phpinfo(); ?>
There you can see your PHP-Configuration and which modules are enabled.
You can also see the path of the modules. Check the path for your mysql
extension and the socket path.
PHP is connecting over the mysql.sock with the function mysql_connect().
PHPmyAdmin is connecting directly with the mysql.sock.
i hope this can help you.
Sorry my English is not the best :(
Jan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFE5GVRFxoGn/ckUGURAqliAJ9vDs3Dq48KJO1dspqBrz2lYSD3HgCfTLNV
5UpPsb8LX2uBQVaoKD5bQLs=
=wxUi
-----END PGP SIGNATURE-----
--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
- References:
- PHP: mysql_connect() undefined function
- From: Paolo Pantaleo
- Re: PHP: mysql_connect() undefined function
- From: Stephen
- Re: PHP: mysql_connect() undefined function
- From: Paolo Pantaleo
- Re: PHP: mysql_connect() undefined function
- From: Stephen
- Re: PHP: mysql_connect() undefined function
- From: Paolo Pantaleo
- Re: PHP: mysql_connect() undefined function
- From: Stephen
- PHP: mysql_connect() undefined function
- Prev by Date: Re: PHP: mysql_connect() undefined function
- Next by Date: Re: http_proxy with firefox?
- Previous by thread: Re: PHP: mysql_connect() undefined function
- Next by thread: Re: PHP: mysql_connect() undefined function
- Index(es):
Relevant Pages
|
|