#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2012
    Posts
    4
    Rep Power
    0

    Sqlserver 2008 connection through php


    i am connecting php to sql server 2008 intall in pc through sqlsrv_connect() and mssql_connect() these function but it given the message undefine function sqlsrv_connect(); or mssql_connect() what i can do for it.
  2. #2
  3. Confused badger
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Mar 2009
    Location
    West Yorkshire
    Posts
    1,112
    Rep Power
    487
    Originally Posted by manzoor ahmad
    i am connecting php to sql server 2008 intall in pc through sqlsrv_connect() and mssql_connect() these function but it given the message undefine function sqlsrv_connect(); or mssql_connect() what i can do for it.
    It sounds like PHP's not compiled with support for those databases; speak to your system administrator and ask they recompile with support included.

    Create and run this script:-

    PHP Code:
    <?php
    phpinfo
    ();
    ?>
    And the output should confirm this. Good luck.
    "For if leisure and security were enjoyed by all alike, the great mass of human beings who are normally stupefied by poverty would become literate and would learn to think for themselves; and when once they had done this, they would sooner or later realise that the privileged minority had no function and they would sweep it away"
    - George Orwell, 1984

IMN logo majestic logo threadwatch logo seochat tools logo