alvin567 Posted June 3, 2012 Share Posted June 3, 2012 Notice (: 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? Quote Link to comment https://forums.phpfreaks.com/topic/263569-connection-to-mssql-to-cakephp-error/ Share on other sites More sharing options...
alvin567 Posted June 3, 2012 Author Share Posted June 3, 2012 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? Quote Link to comment https://forums.phpfreaks.com/topic/263569-connection-to-mssql-to-cakephp-error/#findComment-1350755 Share on other sites More sharing options...
alvin567 Posted June 3, 2012 Author Share Posted June 3, 2012 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 Quote Link to comment https://forums.phpfreaks.com/topic/263569-connection-to-mssql-to-cakephp-error/#findComment-1350762 Share on other sites More sharing options...
alvin567 Posted June 3, 2012 Author Share Posted June 3, 2012 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 } Quote Link to comment https://forums.phpfreaks.com/topic/263569-connection-to-mssql-to-cakephp-error/#findComment-1350769 Share on other sites More sharing options...
trq Posted June 3, 2012 Share Posted June 3, 2012 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. Quote Link to comment https://forums.phpfreaks.com/topic/263569-connection-to-mssql-to-cakephp-error/#findComment-1350771 Share on other sites More sharing options...
alvin567 Posted June 3, 2012 Author Share Posted June 3, 2012 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 Quote Link to comment https://forums.phpfreaks.com/topic/263569-connection-to-mssql-to-cakephp-error/#findComment-1350779 Share on other sites More sharing options...
alvin567 Posted June 3, 2012 Author Share Posted June 3, 2012 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. Quote Link to comment https://forums.phpfreaks.com/topic/263569-connection-to-mssql-to-cakephp-error/#findComment-1350780 Share on other sites More sharing options...
trq Posted June 3, 2012 Share Posted June 3, 2012 Did you even read my last post? Quote Link to comment https://forums.phpfreaks.com/topic/263569-connection-to-mssql-to-cakephp-error/#findComment-1350782 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.