Subject: RE: PHP not talking to MySQL
To: Jaromir Dolecek <jdolecek@netbsd.org>
From: Frank DeChellis <frankd@iaw.on.ca>
List: tech-pkg
Date: 02/06/2003 15:48:25
This is the error message were getting

[Thu Feb  6 15:48:03 2003] [error] PHP Fatal error:  Call to undefined
function:  mysql_connect() in /u2/home/users/kevind/public_html/addql.php on
line 10

> -----Original Message-----
> From: tech-pkg-owner@netbsd.org [mailto:tech-pkg-owner@netbsd.org]On
> Behalf Of Jaromir Dolecek
> Sent: Thursday, February 06, 2003 3:39 PM
> To: Frank DeChellis
> Cc: tech-pkg@netbsd.org
> Subject: Re: PHP not talking to MySQL
>
>
> Perhaps try adding
>
> extension=mysql.so
>
> to your php.ini file? Normally located under /usr/pkg/etc/php.ini.
> You'd need to add
>
> extension=pcre.so
>
> and
>
> extension=session.so
>
> to your php.init as well in order to have it working.
>
> Jaromir
>
> Frank DeChellis wrote:
> [ Charset ISO-8859-1 unsupported, converting... ]
> > Hi!
> >
> > We have NetBSD 1.6_STABLE, PHP 4.1.2 and MySQL 3.23.
> >
> > For some reason, PHP works fine until you try and do anything
> with MySQL.
> > MySQL works fine at the command prompt.  IS there a file that we need to
> > edit to configure PHP to use MySQL.
> >
> > Any help you can offer is appreciated.
> >
> > Thanks
> > Frank
> >
> > Here are the packages we have installed.
> >
> > php-4.1.2           HTML-embedded scripting language
> > php-pcre-4.1.2      PHP4 extension for Perl-compatible regular
> expressions
> > php-session-4.1.2nb1 PHP4 extension for session-handling
> > php-gettext-4.1.2   PHP4 extension for gettext support
> > php-xml-4.1.2       PHP4 extension for parsing XML
> > php-imap-4.1.2      PHP4 extension for IMAP (Internet Mailbox Access
> > Protocol)
> > ap-php-4.1.2        Apache module for PHP4
> > php-mysql-4.1.2     PHP4 extension for MySQL databases
> > phpmyadmin-2.2.0    Set of PHP-scripts to adminstrate MySQL over the WWW
> > mysql-client-3.23.49nb1 MySQL, a free SQL database (client)
> > mysql-server-3.23.49 MySQL, a free SQL database (server)
> > php-mysql-4.1.2     PHP4 extension for MySQL databases
> >
> > ---------------------------------------------
> > Frank DeChellis, President
> > Internet Access Worldwide
> > 3 East Main St.  Welland, ON, Canada
> > 1-905-714-1400   http://www.iaw.com
> > ---------------------------------------------
> >
>
>
> --
> Jaromir Dolecek <jdolecek@NetBSD.org>            http://www.NetBSD.org/
> -=- We should be mindful of the potential goal, but as the tantric    -=-
> -=- Buddhist masters say, ``You may notice during meditation that you -=-
> -=- sometimes levitate or glow.   Do not let this distract you.''     -=-
>