Hi there, since i've been getting messages at ragezone about how to allow XAMP to work with MSSQL i'll post here a tutorial on how to do it.
1st. Download this version of xampp here :
Download XAMPP from SourceForge.net
2nd. Install xamp
3rd. Start the xamp control.
4th. Install the apache, do not start the apache yet.
5th. Go to your php.ini located at :
Code:
C:\xampp\php\php.ini
6th. Find short_open_tag till you see this :
Code:
Short_open_tag = Off
7th. Change it to :
Code:
Short_open_tag = On
8th. Find php_mssql.dll till you see this :
Code:
;extension=php_mssql.dll
9th. Change it to :
Code:
extension=php_mssql.dll
10th. If you are using PDO MSSQL find this :
Code:
;extension=php_pdo_mssql.dll
11th. Change it to :
Code:
extension=php_pdo_mssql.dll
12th. Start the apache.
13th. Go to your htdocs located at :
14th. Make a file called "test.php" ( without the " )
15th. Inside it put this :
PHP Code:
<?php
if (function_exists('mssql_fetch_row')) {
echo "I guess it worked hum?.<br />\n";
} else {
echo "Nah, you need to uninstall the version of xampp you were using.\n";
}
?>
16th. Then save it.
17th. Go to yourip/test.php or localhost/test.php
18th. If it comes with "I guess it worked hum?" it means you have MSSQL enabled.
19th. If it comes with "Nah, you need to uninstall the version of xampp you were using" it means you did something wrong.
Dont come with annoying replys, i've done this to help some people that have been contacting me for release this tutorial.
P.S : if you want me to make a tutorial for WAMP MSSQL Connections, post it here.
All the best.
Korey.