Subject: Re: PHP not talking to MySQL
To: Jaromir Dolecek <jdolecek@netbsd.org>
From: Frank DeChellis DSL <frankd@iaw.on.ca>
List: tech-pkg
Date: 02/06/2003 16:25:26
I put that line in there as well as the other 2 you mentioned.
On Thu, 6 Feb 2003, Jaromir Dolecek wrote:
> Date: Thu, 6 Feb 2003 22:09:47 +0100 (CET)
> From: Jaromir Dolecek <jdolecek@netbsd.org>
> To: Frank DeChellis <frankd@iaw.on.ca>
> Cc: tech-pkg@netbsd.org
> Subject: Re: PHP not talking to MySQL
>
> Frank DeChellis wrote:
> > 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
>
> Yes, this is precisely symptom of the module not being loaded.
> Do you have line
>
> extension=mysql.so
>
> in your php.ini file?
>
> Jaromir
>
> > > -----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.'' -=-
> > >
> >
>
>
> --
> 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.'' -=-
>
-----------------------------------------------------------------------
Frank DeChellis
Internet Access Worldwide
6 King Street Welland, Ontario, Canada L3B 3H9
905-714-1400 fax 905-732-0524
www.iaw.com
----------------------------------------------------------------------