SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Member
    Join Date
    Oct 2011
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Help with mysql and PHP

    Hi

    I am getting the following error when I start up the Apache service

    PHP Warning: PHP Startup: Unable to load dynamic library ''.\\ext'\\php_mysqli.dll' - The specified module could not be found.\r\n in Unknown on line 0

    I cannot for the life of me see why its got two \\ when the line is

    extension_dir = '.\ext'

    I have also tried

    extension_dir = "C:\PHP\ext"

    To which the error is

    PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\PHP\\ext\\php_mysqli.dll' - The specified module could not be found.\r\n in Unknown on line 0

    Can anyone help me get this working

    Thanks

    Andy

  2. #2
    Avid Logophile silver trophy
    ParkinT's Avatar
    Join Date
    May 2006
    Location
    Central Florida
    Posts
    2,326
    Mentioned
    191 Post(s)
    Tagged
    4 Thread(s)
    The additional backslash character is an ESCAPE.
    In PHP, special characters must be referenced using this format (preceding it with an ESCAPE).
    Even though you are working in Windows, try defining your directory with slashes (/) as opposed to the backslash(\)
    Don't be yourself. Be someone a little nicer. -Mignon McLaughlin, journalist and author (1913-1983)


    Git is for EVERYONE
    Literally, the best app for readers.
    Make Your P@ssw0rd Secure
    Leveraging SubDomains

  3. #3
    SitePoint Member
    Join Date
    Oct 2011
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have tried the following variations with no luck

    ; Directory in which the loadable extensions (modules) reside.
    ;extension_dir = '.\ext'
    ;extension_dir = C:\ext
    ;extension_dir = "C:\PHP\ext"
    ;extension_dir = "C:/PHP/ext/"
    extension_dir = "./"

    The last log was

    PHP Warning: PHP Startup: Unable to load dynamic library './php_mysqli.dll' - The specified module could not be found.\r\n in Unknown on line 0
    [Tue Oct 18 19:53:00 2011] [notice] Apache/2.2.21 (Win32) PHP/5.2.17 configured -- resuming normal operations
    [Tue Oct 18 19:53:00 2011] [notice] Server built: Sep 9 2011 10:26:10
    [Tue Oct 18 19:53:01 2011] [notice] Parent: Created child process 1144
    httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.0.2 for ServerName
    httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.0.2 for ServerName
    PHP Warning: PHP Startup: Unable to load dynamic library './php_mysqli.dll' - The specified module could not be found.\r\n in Unknown on line 0
    [Tue Oct 18 19:53:01 2011] [notice] Child 1144: Child process is running
    [Tue Oct 18 19:53:01 2011] [notice] Child 1144: Acquired the start mutex.
    [Tue Oct 18 19:53:01 2011] [notice] Child 1144: Starting 64 worker threads.
    [Tue Oct 18 19:53:02 2011] [notice] Child 1144: Starting thread to listen on port 80.

  4. #4
    Theoretical Physics Student bronze trophy Jake Arkinstall's Avatar
    Join Date
    May 2006
    Location
    Lancaster University, UK
    Posts
    7,062
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Where is php_mysqli.dll on your computer? Do a file search. If it's not on your computer at all, you simply need to download it and put it into your extension directory. Though if you don't know which directory that is, you really shouldn't be modifyi
    Jake Arkinstall
    "Sometimes you don't need to reinvent the wheel;
    Sometimes its enough to make that wheel more rounded"-Molona

  5. #5
    SitePoint Member
    Join Date
    Oct 2011
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The file php_mysqli.dll is in the C:\PHP\ext directory

  6. #6
    SitePoint Member
    Join Date
    Oct 2011
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have now managed to get PHP to work with mysql.

    I copied the dll it was trying to find into the apache bin directory


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •