PHP Warning Unknown()..?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • delusion7
    New Member
    • Sep 2006
    • 37

    PHP Warning Unknown()..?

    I keep getting this error and/or similar errors. I am very new to mysql and php.

    "PHP Warning: Unknown(): Unable to load dynamic library './php_mysqli.dll' - The specified module could not be found. in Unknown on line 0 " and
    "PHP Warning: Unknown(): Unable to load dynamic library 'C:\PHP\php_mys qli.dll' - The specified module could not be found. in Unknown on line 0"

    I've moved and copied 'libmysql.dll', 'php_mysqli.dll ', and 'php.ini' to the php directory, windows dir, and system32 dir. I've been to dozens of different forums and nothing I do is fixing this problem!?
    Changed the extension dir to "extension_ dir = "C:\PHP\"" and uncommented "extension=php_ mysqli.dll" and "extension=php_ mysql.dll"
    Mind you, this is all what different forums have said to do.

    I was currently working with mysql 4.1, but upgraded to 5.0 and using php 4.4.4.

    Anthing would help right now..!
  • bevort
    New Member
    • Jul 2006
    • 53

    #2
    When you use Windows you have to write the path to PHP in the UNIX way
    so use things like
    extension_dir = "c:/php/"

    You may also try a real windows installer like the WAMP pack installing all and everything for you.

    Comment

    • delusion7
      New Member
      • Sep 2006
      • 37

      #3
      Originally posted by bevort
      When you use Windows you have to write the path to PHP in the UNIX way
      so use things like
      extension_dir = "c:/php/"

      You may also try a real windows installer like the WAMP pack installing all and everything for you.
      Tried that, and it didn't work, the error just shows the forward slashes instead of the back slashes. Could there be a problem with environment variables? i'm not sure how to change those, somone had suggested modifying those?

      Comment

      • vssp
        Contributor
        • Jul 2006
        • 268

        #4
        Please try to stop and start multiple time I think its working fine

        vssp

        Comment

        • bevort
          New Member
          • Jul 2006
          • 53

          #5
          Normaly you should not have to add a path in the environment but in certain constistant errors you can do so. but be sure to restart the machine not only the servers installed. Even winXP tends to have problems with adding env. vars on the fly

          Comment

          • bevort
            New Member
            • Jul 2006
            • 53

            #6
            To set environment vars in Windows XP take the next steps:
            Rightclick "My computer" on your desktop and select "properties "
            in the properties window select "Advanced"
            On the bottom of this window you find a button "Environmet varaibles"
            Go to the "system" part and select the existing var "Path" and add your path to PHP seperated from the existing using a semicolon (;)

            Comment

            • delusion7
              New Member
              • Sep 2006
              • 37

              #7
              Well I tried everything posted here and nothing seemed to help. So I ended up deleting everything and reinstalled php, and it seems that the problem came from libmysql.dll. I don't know if I mixed up different dll's or what but it works!!
              Thanks for the help!

              Comment

              Working...