Mihaela IFTIMI-ILIE wrote:
>
> Hi, all!
>
> I can't connect to mysql via php3 ! I get this error (on browser):
> Call to unsupported or undefined function mysql_connect()!
>
> I have instaled : mysql 3.22.23, mod-php3, apache 1.3.2 (these packets are
> rpm) and I have RedHat 5.2 linux box.
> First I instaled mysql 3.22.23 next mod-php3 and then apache 1.3.2.
>
> Where I'm wrong ?
> Can anyone help me ?
>
> Thanks in advance
>
>
>
>
It looks like your PHP module is not aware of mysql_connect() - it was
probable compiled without support for MySQL.
The best thing to do is to bring in the Apache and PHP sources and build
everything yourself - make sure to give
-with-mysql=/path/to/libmysqlclient.a to configure when building PHP (
read the manuals carefully)
--
Sasha Pachev
http://www.sashanet.com/ (home)
http://www.direct1.com/ (work)
| Thread |
|---|
| • Apache, mySQL, and PHP3 on OpenBSD 2.4 | John Kerbawy | 13 Jul |
| • Re: Apache, mySQL, and PHP3 on OpenBSD 2.4 | Sasha Pachev | 13 Jul |
| • Apache, mySQL, and PHP3 | Mihaela IFTIMI-ILIE | 13 Jul |
| • Re: Apache, mySQL, and PHP3 | Darrell Shifflett | 13 Jul |
| • Re: Apache, mySQL, and PHP3 | Al Feisal | 13 Jul |
| • Re: Apache, mySQL, and PHP3 | clhubert | 14 Jul |
| • Re: Apache, mySQL, and PHP3 | Sasha Pachev | 21 Jul |
| • open sized window with PHP | William Samplonius | 22 Jul |
| • Re: open sized window with PHP | Daniel Koch | 22 Jul |
| • Re: open sized window with PHP | Sasha Pachev | 22 Jul |