SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    Santos L Halper Zenith's Avatar
    Join Date
    May 2002
    Location
    Finland
    Posts
    641
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Newbie Q: what am I doing wrong with dll's (win+php)

    I have read instructions and this should be so easy, but no. Just cannot find the proble. What I want to do is just test how dll's can be used in PHP, and I'm developing PHP in win2000 at the moment. Because I got bored on ASP a while and want to do something else

    PHP is installed to: C:\PHP
    I downloaded a load of windows binaries, and they all are in: C:\PHP\EXTENSIONS -folder.

    I edited PHP.ini and changed:
    extension_dir = C:\PHP\EXTENSIONS

    and
    extension=php_mssql.dll (tried with others too)

    I've checked permissions for the dll in windows, tried different paths and folders, but always same error. When I try to load the php-page, even tho it has nothing inside, i get this:

    Unkown(): Unable to load dynamic library 'C:\php\extensions\php_mssql.dll' - The specified module could not be found.

    Arrrgh!

    -Z-

  2. #2
    Mlle. Ledoyen silver trophy seanf's Avatar
    Join Date
    Jan 2001
    Location
    UK
    Posts
    7,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Have you copied all the files in the dlls folder to your system folder?

    Sean
    Harry Potter

    -- You lived inside my world so softly
    -- Protected only by the kindness of your nature

  3. #3
    ********* Wizard silver trophy Cam's Avatar
    Join Date
    Aug 2002
    Location
    Burpengary, Australia
    Posts
    4,495
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by seanf
    Have you copied all the files in the dlls folder to your system folder?
    They must be in your %SYSTEMROOT% to be found by Apache. Either

    C:\WINDOWS\SYSTEM [Win9x]
    C:\WINDOWS\SYSTEM32 [Win2k/XP]
    C:\WINNT\SYSTEM32 [WinNT]

  4. #4
    ********* wombat firepages's Avatar
    Join Date
    Jul 2000
    Location
    Perth Australia
    Posts
    1,717
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I downloaded a load of windows binaries
    ... from the same place you got your PHP binary ? they need to be compiled against the same version as your PHP ... grab the zipfile (not the installer) from PHP.net for a binary with compatible extensions

    IN all but a couple of cases the dll's in /dlls dont need to go into system32 as php looks for them in /dlls , a couple do though (eg interbase) , I dont know about mssql ?


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
  •