RE: [PHP-INST] Re: Call to undefined function: mysql_connect()
by Rob Round other posts by this author
Dec 6 2001 2:21PM messages near this date
Re: [PHP-INST] Re: Call to undefined function: mysql_connect()
|
[PHP-INST] =?ks_c_5601-1987?B?W8GkurjBprD4IF0godoguau34bfOIMbIvsYgteW4s7TPtNkuLg==?=
Here is the configuration command (PHP Version 4.0.4pl1). I guess I should
have added this in my original email. I did see that it
says --without-mysql which was a clue to my problem. Whay I don't
understand is why, on two installs, if I pick "install everything" it
doesn't install this. Can I add it after the fact or do I need to reinstall
PHP from scratch?
Thanks again.
Rob.
'./configure' '--prefix=/usr' '--with-config-file-path=/etc'
'--disable-debug' '--enable-pic' '--enable-shared'
'--enable-inline-optimization' '--with-apxs=/usr/sbin/apxs'
'--with-exec-dir=/usr/bin' '--with-regex=system' '--with-gettext'
'--with-gd' '--with-jpeg-dir=/usr' '--with-png' '--with-zlib' '--with-db2'
'--with-db3' '--with-gdbm' '--enable-debugger' '--enable-magic-quotes'
'--enable-safe-mode' '--enable-sockets' '--enable-sysvsem'
'--enable-sysvshm' '--enable-track-vars' '--enable-yp' '--enable-ftp'
'--enable-wddx' '--without-mysql' '--without-oracle' '--without-oci8'
'--with-xml'
-----Original Message-----
From: Fred [mailto:fred.nospam.please@[...].com]
Sent: Thursday, December 06, 2001 3:13 AM
To: php-install@[...].net
Subject: [PHP-INST] Re: Call to undefined function: mysql_connect()
Write this script and execute it:
<? phpinfo() ?>
It will provide you with a lengthy list of configuration information. Copy
the "configuration command" and any mysql info to an email so that we can
better understand your situation.
Fred
Rob Round <subscriptions@[...].com> wrote in message
news:BAEBLFBDHLPPOEBEAELCOEGFDEAA.subscriptions@[...]..
> Hello,
>
> I have a standard RedHat7.2 install. In the installation I specified
every
> mysql, PHP and apache module available. PHP works, mysql works and so
does
> Apache. Unfortunately, I get this error when trying to make a mysql
> connection through a PHP page "Call to undefined function:
mysql_connect()".
> I'm assuming that PHP is missing some compile switches that weren't
> available at install time. Is it possible to add this functionality
> afterwards or do I have to recompile PHP from scratch? If there is a way
> around not reinstalling from scratch that would be great as this is a
> production machine.
>
> I have looked through the archives and haven't really found what I needed.
I
> also did a test install on a second machine and installed every package
> available to see if the PHP/mysql support was included... it wasn't.
>
> Thanks in advance.
>
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-install-unsubscribe@[...].net
For additional commands, e-mail: php-install-help@[...].net
To contact the list administrators, e-mail: php-list-admin@[...].net
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-install-unsubscribe@[...].net
For additional commands, e-mail: php-install-help@[...].net
To contact the list administrators, e-mail: php-list-admin@lists.php.net
Thread:
Rob Round
Fred
Fred
Ana Cerejo
Rob Round
|