locked
Unable to load php_sqlsrv_53_nts_vc6.dll RRS feed

  • Question

  • I am trying to get mssql to work in php.  I am running Windows Server 2008, PHP 5.3, IIS 7, AND MSSQL Server 2008. I have php5.dll.

    I downloaded and installed the latest php_sqlsrv_53_nts_vc6.dll and php_pdo_sqlsrv_53_nts_vc6.dll package.  I modified my php.ini to include extension=php_sqlsrv_53_nts_vc6.dll and extension=php_pdo_sqlsrv_53_nts_vc6.dll and then restarted the IIS server.

    When I run php -v I get the error:

    PHP Warning: PHP Startup: Unable to load dynamic libarary 'C:\php\php_sqlsrv_53_nts_vc6.dll' - The specified module could not be found.  in Unknown on line 0.

    PHP Warning: PHP Startup: Unable to load dynamic libarary 'C:\php\php_pdo_sqlsrv_53_nts_vc6.dll' - The specified module could not be found.  in Unknown on line 0.

    I can see both files I am calling in my c:php\ext folder and I have the folder permissions set to everyone\everything.

    When I try to connect in php I get the error "Call to undefined function sqlsrv_connect() in C:\inetpub\wwwroot\mysqltest.php on line 3

    I have been trying to get this to work for about 5 hours. PLEASE PLEASE does anyone have ANY ideas?

    Monday, April 4, 2011 9:59 PM

Answers

All replies

  • Hello,

    I am far to be a specialist of php, but i would suggest you to have a look at this link :

    http://msdn.microsoft.com/en-us/library/cc296203(SQL.90).aspx

    and check whether you have done all the steps for a correct install ( it is an error i am doing sometimes , i am only doing a suggestion )

    Don't hesitate to post again for more help or explanations. If i find a more valuable information, i will post it.

    Have a nice day


    Mark Post as helpful if it provides any help.Otherwise,leave it as it is.
    • Proposed as answer by Ai-hua Qiu Wednesday, April 6, 2011 9:11 AM
    • Unproposed as answer by Papy Normand Wednesday, April 6, 2011 9:44 AM
    Wednesday, April 6, 2011 8:26 AM
  • Hi,

    Could you please go through the following link? This link provides instructions for loading the Microsoft Drivers for PHP for SQL Server into the PHP process space. Please see:
    Loading the Microsoft Drivers for PHP for SQL Server
    http://msdn.microsoft.com/en-us/library/cc296203(v=SQL.105).aspx

    For more information, please see:
    System Requirements (Microsoft Drivers for PHP for SQL Server)
    http://msdn.microsoft.com/en-us/library/cc296170(v=SQL.105).aspx

    Thanks,
    Ai-Hua Qiu


    Ai-hua Qiu[MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Proposed as answer by Papy Normand Wednesday, April 6, 2011 9:41 AM
    • Marked as answer by Ai-hua Qiu Tuesday, April 12, 2011 5:24 AM
    Wednesday, April 6, 2011 9:04 AM
  • Hello Ai-hua Qiu,

    Cheers for your post, i am not seen that it was a SQL Server 2008.So only your post is answering the original post

    Have a nice day


    Mark Post as helpful if it provides any help.Otherwise,leave it as it is.
    Wednesday, April 6, 2011 9:44 AM