Jump to content

Archived

This topic is now archived and is closed to further replies.

alvin567

Connection to mssql to cakephp error?

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?

Share this post


Link to post
Share on other sites

The main error is

 

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

 

is there anyway?mssql driver anything?

Share this post


Link to post
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

    }

Share this post


Link to post
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.

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Did you even read my last post?

Share this post


Link to post
Share on other sites

×
×
  • 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.