Jump to content

Connection to mssql to cakephp error?


alvin567

Recommended Posts

Notice (8): Undefined variable: url [APP\webroot\index.php, line 90] /** * CakePHP Component & Model Code Completion * @author junichi11 * * ============================================== * CakePHP Core Components * ============================================== * @property AuthComponent $Auth * @property AclComponent $Acl * @property CookieComponent $Cookie * @property EmailComponent $Email * @property RequestHandlerComponent $RequestHandler * @property SecurityComponent $Security * @property SessionComponent $Session */

Warning (512): PHP SQL Server interface is not installed, cannot continue. For troubleshooting information, see http://php.net/mssql/ [CORE\cake\libs\model\datasources\dbo\dbo_mssql.php, line 121]

Fatal error: Call to undefined function mssql_min_message_severity() in C:\xampp\htdocs\lawsocscheme\cake\libs\model\datasources\dbo\dbo_mssql.php on line 123

 

1)one more thing how do I format the quote?

Link to comment
Share on other sites

    function __construct($config, $autoConnect = true) {

119

        if ($autoConnect) {

120

            if (!function_exists('mssql_min_message_severity')) {

121

                trigger_error(__("PHP SQL Server interface is not installed, cannot continue. For troubleshooting information, see http://php.net/mssql/", true), E_USER_WARNING);

122

            }

123

            mssql_min_message_severity(15);

124

            mssql_min_error_severity(2);

125

        }

126

        return parent::__construct($config, $autoConnect);

127

    }

Link to comment
Share on other sites

The code you just posted does not work with the sqlsrv driver. Looks like it requires the old mssql extension which you apparently don't have installed either. Either install the old (and depricated mssql extension) or find an abstraction that uses the sqlsrv extension.

 

PS: This thread has nothing to do with the topic of this board.

Link to comment
Share on other sites

I have downloaded sqlsrv from microsoft,

There are two versions,sqlsrv20 and sqlsrv30

I drop php_sqlsrv_53_ts_vc9.dll on C:\xampp\php\ext

I commented : extension=php_sqlsrv_53_ts_vc9.dll

 

I am using wamp server

I am using phpversion 5.3.8

How do i go to phpinfo to see if it has been activated or not.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.