On Wed, 04 Aug 2004 17:50:41 -0400, David Scribler wrote:
"Fatal error: Call to undefined function: mysql_connect() in
/home/david/html/html/test.php on line 3"
I am using Debian unstable. Is there some setting I need to look at in
the php.ini file?
Did you compile PHP with mysql enabled?
I did an apt-get on mysql. Since mysql is a default I would asume that
it was compiled in. I could be wrong.
No idea about Linux.. but my BSD installs went like:
[ SQL ]
- install MySQL
[ PHP ]
- ./configure --lotsa=stuff --with-mysql=/usr/local
- install
The only chance you'd have the way you have it is if there's a build
option with your package system, for example, FreeBSD ports I can do with
some things:
# cd /usr/ports/foo/bar
# make PREFIX=/usr install
Whether you have this option with your PHP package where you could specify
'WITH_MYSQL=yes' or similar, the pkg _might_ automagically download and
configure MySQL then much like a dependency might be.
I've never used a Linux box so no idea how those pkgs work, but might be
something to look for, but I'd suspect install MySQL first, _then_
maybe the option with the PHP install... man pages maybe more help =)
Regards,
Ian
--
Ian.H
digiServ Network
London, UK
http://digiserv.net/