Fatal error with mssql_connect()

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aryan2cool
    New Member
    • Aug 2007
    • 9

    Fatal error with mssql_connect()

    hii

    i have faced a fatel error like.."Fatal error: Call to undefined function: mssql_connect() in c:\winnt\temp\t mphrivp8.php on line 7"

    i am using php with plone in windows xp pro..

    any ideas wat is wrong???
  • ak1dnar
    Recognized Expert Top Contributor
    • Jan 2007
    • 1584

    #2
    Originally posted by aryan2cool
    hii

    i have faced a fatel error like.."Fatal error: Call to undefined function: mssql_connect() in c:\winnt\temp\t mphrivp8.php on line 7"

    i am using php with plone in windows xp pro..

    any ideas wat is wrong???
    Reason for the error is,
    you are trying to connect with MSSQL database on a non-configured Php/MsSQL environment.

    Comment

    • ak1dnar
      Recognized Expert Top Contributor
      • Jan 2007
      • 1584

      #3
      Inappropriate Thread Title changed.
      fatal error..need help..

      Please find out how to create a good thread title

      Comment

      • mmr315
        New Member
        • Aug 2007
        • 25

        #4
        please put the mysql driver for php in lib folder of apache

        Comment

        • pbmods
          Recognized Expert Expert
          • Apr 2007
          • 5821

          #5
          Heya, Aryan.

          If you installed PHP from the .msi installer, simply use the Change/Repair feature in Add/Remove Programs and add MS SQL support.

          Comment

          • aryan2cool
            New Member
            • Aug 2007
            • 9

            #6
            Originally posted by pbmods
            Heya, Aryan.

            If you installed PHP from the .msi installer, simply use the Change/Repair feature in Add/Remove Programs and add MS SQL support.

            php is installed manually and extension in php.ini file for mssql is made uncommented,,.b ut still not working....what next??

            Comment

            • pbmods
              Recognized Expert Expert
              • Apr 2007
              • 5821

              #7
              Heya, Aryan.

              What do you mean by, "installed manually"? Did you compile it from source?

              Comment

              • Purple
                Recognized Expert Contributor
                • May 2007
                • 404

                #8
                Hi,

                can I suggest we go back to basics on this one and confirm where you are loading the php.ini file from.

                Create a script with the following :

                [PHP]<?php
                phpinfo();
                ?>[/PHP]

                and confirm the php.ini location is the same as you are changing. If that is ok, I would suggest changing the php.ini to match the following:

                Code:
                error_reporting  =  E_ALL
                display_errors = On
                display_startup_errors = On
                and then restart your machine.

                Now you should be getting an error msg when php initialises complaining about a missing dll.

                Post back when you get to this point.

                Regards Purple

                Comment

                • aryan2cool
                  New Member
                  • Aug 2007
                  • 9

                  #9
                  hii...
                  php dos not seem working in my system....wven after reinstalling it...now wat..any guidence??

                  Comment

                  • Purple
                    Recognized Expert Contributor
                    • May 2007
                    • 404

                    #10
                    Hi aryan,

                    as a site moderator, my first suggestion is you review the posting guidelines here, specifically acceptable forms of english in posts. You must appreciate this site has users across the globe and many will be struggling with well formed english.

                    Regards Purple

                    Comment

                    • Purple
                      Recognized Expert Contributor
                      • May 2007
                      • 404

                      #11
                      aryan,

                      Can you provide some more informaiton on your environment. I know you are running win XP, PHP and plone. Which webserver are you using ? version of php have you installed ?

                      The installation you have performed, did you use the PHP installer and then add plone ?

                      If you are running IIS, are you using CGI or ISAPI or fast CGI ?

                      What do you get if you run:

                      [PHP]<?php
                      phpinfo();
                      ?>[/PHP]

                      Regards Purple

                      Comment

                      • aryan2cool
                        New Member
                        • Aug 2007
                        • 9

                        #12
                        dear purple

                        thank you for your kind help and i really do appreciate the way you have been moderating this forum.



                        I am using php4.0 in IIS(CGI) server.

                        What do you get if you run:

                        [PHP]<?php
                        phpinfo();
                        ?>[/PHP]


                        I get nothing when i run that.. its opening by default in note pad and when opened with mozila browser.. nothing appears....

                        i am puzzled what is happening...can you please guide me..

                        regards.
                        Aryan

                        Comment

                        • Purple
                          Recognized Expert Contributor
                          • May 2007
                          • 404

                          #13
                          Aryan,

                          open IIS Manager. open the websites folder - right click on the website of interest and select the home directory tab, click configuration and confirm an entry exists in the list for .php pointing to the cgi exe in the php folder.

                          then post back..

                          Regards Purple

                          Comment

                          Working...