Jump to content

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
https://forums.phpfreaks.com/topic/263569-connection-to-mssql-to-cakephp-error/
Share on other sites

http://php.net/manual/en/ref.pdo-sqlsrv.php

 

Ok,I have founded this driver.

Now how do I changed the parameter of the of the php.ini so that it allows the connection.

I am using wamp btw.

 

This was actually the topic that I have founded to be relevant.

 

http://www.phpfreaks.com/forums/index.php?topic=325480.0

    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

    }

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.

It still ain't working even when I uncommented

C:\xampp\php\php.ini

17 minutes ago

 

I was referring to this part of the post here it says:

 

http://stackoverflow.com/questions/3921707/cakephp-error-when-trying-to-use-mssql-datasource

 

So I uncommented and downloaded here.extension=php_sqlsrv_53_ts_vc9.dll

 

but it still doesn't work

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.

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.