Page 1 of 1

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

PostPosted: 24. February 2012 03:58
by q_ruhul
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...

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

PostPosted: 24. February 2012 04:26
by JonB
Read this topic -

viewtopic.php?f=16&t=49670

look down to post #6

8)

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

PostPosted: 24. February 2012 11:23
by q_ruhul
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...

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

PostPosted: 24. February 2012 23:22
by hackattack142
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