Where do I activate mysql support?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • fabriZio

    Where do I activate mysql support?

    I run php pages in IIS in cgi-mode(only pointing them to PHP.exe).

    But I can't connect to database:

    Fatal error: Call to undefined function: mysql_pconnect( ).....

    I read that I have to activate PHP with mySQL support...but where in my
    scenario??

    I looked at php.ini...but no results...

    any help appreciated..

    regards.

    --
    fabriZio


  • Jochen Daum

    #2
    Re: Where do I activate mysql support?

    Hi !
    On Wed, 9 Jul 2003 00:42:32 +0200, "fabriZio"
    <joker197cinque NIENTESPAM@yaho o.it> wrote:
    [color=blue]
    >I run php pages in IIS in cgi-mode(only pointing them to PHP.exe).
    >
    >But I can't connect to database:
    >
    >Fatal error: Call to undefined function: mysql_pconnect( ).....
    >
    >I read that I have to activate PHP with mySQL support...but where in my
    >scenario??
    >
    >I looked at php.ini...but no results...[/color]

    Maybe look again. Is the extension for mysql commented maybe (with a ;
    ???)

    HTH, Jochen
    --
    Jochen Daum - CANS Ltd.
    PHP DB Edit Toolkit -- PHP scripts for building
    database editing interfaces.
    Download PHP DB Edit Toolkit for free. PHP DB Edit Toolkit is a set of PHP classes makes the generation of database edit interfaces easier and faster. The main class builds tabular and form views based on a data dictionary and takes over handling of insert/update/delete and user input.

    Comment

    • fabriZio

      #3
      Re: Where do I activate mysql support?

      Only lines I found are:

      ;Windows Extensions
      ;Note that MySQL and ODBC support is now built in, so no dll is needed for
      it.
      ;
      ;extension=php_ bz2.dll
      ;extension=php_ cpdf.dll
      ;extension=php_ crack.dll
      ;extension=php_ curl.dll
      ;extension=php_ db.dll
      ;extension=php_ dba.dll
      ...............
      CUT

      but there aren't mysql dll (also MySQL and ODBC support is now built in)

      Can u please help me?

      --
      fabriZio


      "Jochen Daum" <jochen.daum@ca ns.co.nz> ha scritto nel messaggio
      news:9hkmgv8g4r oaaa3cil18f996a 5fc5usc5k@4ax.c om...[color=blue]
      > Hi !
      > On Wed, 9 Jul 2003 00:42:32 +0200, "fabriZio"
      > <joker197cinque NIENTESPAM@yaho o.it> wrote:
      >[color=green]
      > >I run php pages in IIS in cgi-mode(only pointing them to PHP.exe).
      > >
      > >But I can't connect to database:
      > >
      > >Fatal error: Call to undefined function: mysql_pconnect( ).....
      > >
      > >I read that I have to activate PHP with mySQL support...but where in my
      > >scenario??
      > >
      > >I looked at php.ini...but no results...[/color]
      >
      > Maybe look again. Is the extension for mysql commented maybe (with a ;
      > ???)
      >
      > HTH, Jochen
      > --
      > Jochen Daum - CANS Ltd.
      > PHP DB Edit Toolkit -- PHP scripts for building
      > database editing interfaces.
      > http://sourceforge.net/projects/phpdbedittk/[/color]


      Comment

      • Randell D.

        #4
        Re: Where do I activate mysql support?


        "fabriZio" <joker197cinque NIENTESPAM@yaho o.it> wrote in message
        news:begc54$4pf p4$1@ID-188335.news.dfn cis.de...[color=blue]
        > Only lines I found are:
        >
        > ;Windows Extensions
        > ;Note that MySQL and ODBC support is now built in, so no dll is needed for
        > it.
        > ;
        > ;extension=php_ bz2.dll
        > ;extension=php_ cpdf.dll
        > ;extension=php_ crack.dll
        > ;extension=php_ curl.dll
        > ;extension=php_ db.dll
        > ;extension=php_ dba.dll
        > ..............
        > CUT
        >
        > but there aren't mysql dll (also MySQL and ODBC support is now built in)
        >
        > Can u please help me?
        >
        > --
        > fabriZio
        >
        >
        > "Jochen Daum" <jochen.daum@ca ns.co.nz> ha scritto nel messaggio
        > news:9hkmgv8g4r oaaa3cil18f996a 5fc5usc5k@4ax.c om...[color=green]
        > > Hi !
        > > On Wed, 9 Jul 2003 00:42:32 +0200, "fabriZio"
        > > <joker197cinque NIENTESPAM@yaho o.it> wrote:
        > >[color=darkred]
        > > >I run php pages in IIS in cgi-mode(only pointing them to PHP.exe).
        > > >
        > > >But I can't connect to database:
        > > >
        > > >Fatal error: Call to undefined function: mysql_pconnect( ).....
        > > >
        > > >I read that I have to activate PHP with mySQL support...but where in my
        > > >scenario??
        > > >
        > > >I looked at php.ini...but no results...[/color]
        > >
        > > Maybe look again. Is the extension for mysql commented maybe (with a ;
        > > ???)
        > >
        > > HTH, Jochen
        > > --
        > > Jochen Daum - CANS Ltd.
        > > PHP DB Edit Toolkit -- PHP scripts for building
        > > database editing interfaces.
        > > http://sourceforge.net/projects/phpdbedittk/[/color]
        >
        >[/color]

        I did use my WinME laptop with Apache/PHP/MySQL and it worked fine - as a
        module.

        I've just checked my php.ini and the help page and found that you don't need
        to enable it - what version of PHP are you using? Do a phpinfo(); and
        examine the output - search for 'mysql' and it should turn up a section on
        its own - There is something in my Linux configuration that says that
        MYSQL_MODULE_TY PE is 'builtin'.... Secondly, since you are using php.exe as
        a cgi with IIS, maybe that could be the problem since I'm using mine as a
        php/apache module.

        If I remember correctly, on http://www.php.net/downloads.php I downloaded
        the larger of the two windows binaries when I had installed it on my laptop
        (the 6mb zip package, not the 1mb installer)... I know they both say they
        have mysql support built in, but... well... unless you got dialup it won't
        hurt to download the 6mb file and install it...

        I hope that gives you some food for thought... its what I would try...


        Comment

        Working...