Re: help with mySQL- Fatal error: Call to undefined function mysql_connect()...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Oh, you're using windows.

To use an extension, set it up as follows.

  1.. Open the PHP.INI file and locate the following line.
  extension_dir = ./

  This line indicates the folder where the PHP extension DLL files are
located. Edit this line to:

  extension_dir = C:\php\extensions

  2.. Select from the PHP extension choices. Note that some of these files
depend on other software to work correctly (such as the Oracle 8 extension).
Consult the PHP documentation to see what additional software (if any) is
required.

  3.. See an example for loading an extension in the following commented out
line:

  ;extension=php_zip.dll

  Uncomment the line, as follows:

  extension=php_zip.dll

  4.. Save your changes.

  5.. Browse the PHP test page in your browser. The following appears:


Also make sure phpinfo is showing the right php.ini file that you expect it
to be.

(http://www.macromedia.com/devnet/mx/dreamweaver/articles/php_iis.html)

-Jeff

----- Original Message ----- 
From: "Jeffrey Moss" <jeff@xxxxxxxxxxxx>
To: <php-db@xxxxxxxxxxxxx>
Sent: Tuesday, August 17, 2004 12:08 PM
Subject: Re:  help with mySQL- Fatal error: Call to undefined
function mysql_connect()...


> Gotta recompile php with the --with-mysql option (or something like that).
>
> Try running configure --help
>
> You can see what options you compiled with by grepping for CONFIGURE in
your
> Makefile. Here's what I got:
>
> root@dragonfly php-5.0.0b4 # grep CONFIGURE Makefile
> CONFIGURE_COMMAND = './configure' '--with-mysql'
> '--with-apxs2=/usr/sbin/apxs2' '--with-zlib' '--with-xsl'
'--with-imap-ssl'
>
> Dude, I need to update!
>
> -Jeff
>
> ----- Original Message ----- 
> From: <AceZero2790@xxxxxxx>
> To: <php-db@xxxxxxxxxxxxx>
> Sent: Tuesday, August 17, 2004 12:02 PM
> Subject:  help with mySQL- Fatal error: Call to undefined function
> mysql_connect()...
>
>
> > I know this is probably the noobiest of questions but please help.
> >
> > Fatal error: Call to undefined function mysql_connect() in
> > .. on line 112
> >
> > This occurs when I try to access a MySQL application, specifically
> Invision
> > Power Boards.
> >
> > I have PHP5 installed on my Apache 1.3.31, and I believe that my MySQL
is
> > MySQL4, all this on Windows XP personal.
> >
> > My php.ini file is in my systemroot (C:/windows). Currently I have no
> loaded
> > extensions for MySQL/php connections stuff (ex: php_mysql.dll,
> > php_mysqli.dll). I tried some stuff I found on help boards but
everything
> > just got all messed
> > up, so I thought I'd get more official help.
> >
> > I have all of the php .DLL files that came with the zip file in
> > C:/windows/system32. PHP-mysql.DLL and php_mysqli.dll are in both
system32
> > and just
> > c:/windows.
> >
> > When I run phpinfo() I get no mention of MySQL. MySQL itself connects to
> the
> > MySQL server just fine. I think that's everything.
> >
> > Thanks in advance.
> >
> >
> >
> >
>
> -- 
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux