Re: PHP: mysql_connect() undefined function



-----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



Relevant Pages

  • RE: [PHP] PHP not remembering sessions
    ... [PHP] PHP not remembering sessions ... check phpinfo() to find out what the session save directory is (provided you ... To unsubscribe, visit: http://www.php.net/unsub.php ...
    (php.general)
  • Re: UCE Complaint (redhat-list digest, Vol 1 #8478 - 2 msgs)
    ... > unsolicited e-mail is not repeated. ... > To subscribe or unsubscribe via the World Wide Web, ... >> I have PHP and mysql on the system. ... > XDMCP using the HOWTO on ...
    (RedHat)
  • Re: CLI tools for checking out CDROM drive
    ... but now I find that the cdplayer just says "no disc". ... When I put a disc in the green light comes on for a bit, ... Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • PHP XSS exploit in phpinfo()
    ... PHP XSS exploit in phpinfo() by Silent Needle ... int phpinfo ... Outputs a large amount of information about the current state of PHP. ...
    (Bugtraq)
  • Re: Bug in acroread?
    ... close to what acroread uses, so I guess my comparison is pretty useless. ... because the open source version is pitifully slow on this system, ... Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)