Apache won't Start with php_mssql.dll & php_pdo_mssql.dll

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Apache won't Start with php_mssql.dll & php_pdo_mssql.dll

Postby q_ruhul » 24. February 2012 03:58

I am using windows w2k3 R2 and install xampp 1.77
after installation .. i try to run using Xampp CP apache won't run

1. i install c++ 2008 runtime

nice it is work perfectly...

2. i remove ";" from "extension=php_mssql.dll" and "extension=php_pdo_mssql.dll" on php.ini

doough... my apache won't start...

can anyone help me with my problem...
q_ruhul
 
Posts: 2
Joined: 24. February 2012 03:45
Operating System: Windows Server 2003 R2

Re: Apache won't Start with php_mssql.dll & php_pdo_mssql.dl

Postby JonB » 24. February 2012 04:26

Read this topic -

viewtopic.php?f=16&t=49670

look down to post #6

8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Apache won't Start with php_mssql.dll & php_pdo_mssql.dl

Postby q_ruhul » 24. February 2012 11:23

Nicely done.. great thanks.. it solved the problem...

but.....


another problem seems to be appears..

I cannot connect to my MSSQL 2005 with this code bellow

Code: Select all
<?php
function Connect()
{
global $link;
if (!($link=mssql_pconnect('TEST\SQLEXPRESS','sa','mypass')))
{
exit();
}
if (!mssql_select_db('UserLogin',$link))
{
exit();
}
return $link;
}
Connect();
?>


always shows

Fatal error: Call to undefined function mssql_connect() in C:\xampp\htdocs\webtemp\connect.php on line 5

did anyone know the problem... and help me solve my problem...
q_ruhul
 
Posts: 2
Joined: 24. February 2012 03:45
Operating System: Windows Server 2003 R2

Re: Apache won't Start with php_mssql.dll & php_pdo_mssql.dl

Postby hackattack142 » 24. February 2012 23:22

First, php_sqlsvr and php_mssql are alternatives to each other and have different syntax. The mssql module does not appear to be maintained anymore.

You can find the functions for sqlsrv here: http://php.net/manual/en/book.sqlsrv.php

If you need to use mssql, you should read the requirements, installation instructions, as well as the user contributed notes on each page here: http://php.net/manual/en/book.mssql.php
XAMPP Control Panel Developer
Latest CP: viewtopic.php?f=16&t=48932
hackattack142
 
Posts: 701
Joined: 20. May 2011 23:29
Operating System: Windows 7 Ultimate SP1 64-Bit


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 110 guests