PHP 4.3.4 and MySQL_i_ extension. How to setup?

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

    PHP 4.3.4 and MySQL_i_ extension. How to setup?

    I'm running PHP 4.3.4 on my home Windows XP Pro machine for programming and
    testing. In preparation for using PHP 5, I'd like to move to using the
    MySQLi extensions (as opposed to the plain MySQL extensions).

    I've upgraded to the MySQL 5.0 alpha and have it running fine.

    What I haven't been able to locate is the PHP dll needed for the MySQLi
    extension. Can anyone point me in the right direction?

    The instructions on the php.net site talk about how to compile the Linux
    version of PHP for this new extension, but no reference is made to a dll.

    I'd like to be able to try this out without having to upgrade to PHP 5 on
    this machine.

    As an experiment, I took the php_mysqli.dll file that is included with the
    PHP5 source code and placed it in my extensions directory. PHP 4.3.4 reports
    the following error message in a dialog box "Unknown(): Unable to load
    dynamic library 'c:\PHP\extensi ons\php_mysqli. dll'-The specified module
    could not be found"

    The location is correctly specified, so I suspect that the problem is not as
    suggested by the dialog box error.

    Tony


  • Ruby Tuesdays

    #2
    Re: PHP 4.3.4 and MySQL_i_ extension. How to setup?

    I'm having the same error message even with PHP5RC1. I can't seem to load
    php_mysql.dll and php_mysqli.dll. Perhaps some PHP guru can explain it.

    Thanks


    Comment

    • pandora

      #3
      Re: PHP 4.3.4 and MySQL_i_ extension. How to setup?

      myqlli has no dll , it is build in.
      "Tony" <nospam@pittare se.com> wrote in message
      news:c45b0b$2gl @library2.airne ws.net...[color=blue]
      > I'm running PHP 4.3.4 on my home Windows XP Pro machine for programming[/color]
      and[color=blue]
      > testing. In preparation for using PHP 5, I'd like to move to using the
      > MySQLi extensions (as opposed to the plain MySQL extensions).
      >
      > I've upgraded to the MySQL 5.0 alpha and have it running fine.
      >
      > What I haven't been able to locate is the PHP dll needed for the MySQLi
      > extension. Can anyone point me in the right direction?
      >
      > The instructions on the php.net site talk about how to compile the Linux
      > version of PHP for this new extension, but no reference is made to a dll.
      >
      > I'd like to be able to try this out without having to upgrade to PHP 5 on
      > this machine.
      >
      > As an experiment, I took the php_mysqli.dll file that is included with the
      > PHP5 source code and placed it in my extensions directory. PHP 4.3.4[/color]
      reports[color=blue]
      > the following error message in a dialog box "Unknown(): Unable to load
      > dynamic library 'c:\PHP\extensi ons\php_mysqli. dll'-The specified module
      > could not be found"
      >
      > The location is correctly specified, so I suspect that the problem is not[/color]
      as[color=blue]
      > suggested by the dialog box error.
      >
      > Tony
      >
      >[/color]


      Comment

      • Andy Hassall

        #4
        Re: PHP 4.3.4 and MySQL_i_ extension. How to setup?

        On Sat, 27 Mar 2004 19:50:58 -0600, "Tony" <nospam@pittare se.com> wrote:
        [color=blue]
        >I'm running PHP 4.3.4 on my home Windows XP Pro machine for programming and
        >testing. In preparation for using PHP 5, I'd like to move to using the
        >MySQLi extensions (as opposed to the plain MySQL extensions).
        >
        >I'd like to be able to try this out without having to upgrade to PHP 5 on
        >this machine.[/color]

        As far as I'm aware, you can't - it's PHP5 only. You might be able to copy the
        source over into a PHP4 tree and do the necessary hacking to get it compile,
        but I doubt it's been tested much in that sort of configuration.

        --
        Andy Hassall <andy@andyh.co. uk> / Space: disk usage analysis tool
        http://www.andyh.co.uk / http://www.andyhsoftware.co.uk/space

        Comment

        • Tony

          #5
          Re: PHP 4.3.4 and MySQL_i_ extension. How to setup?

          If you're running PHP 5, try the following:

          In the PHP 5 install directory (c:\php5 for example), you'll find two .dll
          files: libmysql.dll and libmysqli.dll. Copy these to c:\windows\syst em32.
          There are two corresponding extensions in the 'ext' directory to load from
          the php.ini file.

          Tony

          "Ruby Tuesdays" <NoSpamPlease_r ubytuzdaiz@yaho o.com> wrote in message
          news:c45uhg$2fb v2q$1@ID-205437.news.uni-berlin.de...[color=blue]
          > I'm having the same error message even with PHP5RC1. I can't seem to load
          > php_mysql.dll and php_mysqli.dll. Perhaps some PHP guru can explain it.
          >
          > Thanks
          >
          >[/color]


          Comment

          • Ruby Tuesdays

            #6
            Re: PHP 4.3.4 and MySQL_i_ extension. How to setup?

            I think I found the mysqli.dll and mysql.dll in either ext directory of if
            you
            download pecl-5.0.0RC1-Win32.zip, but it won't load.

            Any ideas? Thanks


            Comment

            • Ruby Tuesdays

              #7
              Re: PHP 4.3.4 and MySQL_i_ extension. How to setup?

              Does it have to be in c:\windows\syst em32? Thanks


              Comment

              • Tony

                #8
                Re: PHP 4.3.4 and MySQL_i_ extension. How to setup?

                "Ruby Tuesdays" <NoSpamPlease_r ubytuzdaiz@yaho o.com> wrote in message
                news:c471nv$2e8 flf$1@ID-205437.news.uni-berlin.de...[color=blue]
                > Does it have to be in c:\windows\syst em32? Thanks[/color]


                Assuming you're running a windows server, yes, based on my experience.

                Tony


                Comment

                Working...