| | |
PHP, APACHE and MSSQL
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
Guys,
I need Help in making PHP APACHE and MS SQL SERVER 2000 to run.
I search a lot but still can not get the logic behind it. All that I understand is that I need to configure something in the PHP INI.
Is it possible in XAMPP? or I need to install PHP APACHE and MS SQL SERVER2000 separately? I am lost!
Thanks Guys!
I need Help in making PHP APACHE and MS SQL SERVER 2000 to run.
I search a lot but still can not get the logic behind it. All that I understand is that I need to configure something in the PHP INI.
Is it possible in XAMPP? or I need to install PHP APACHE and MS SQL SERVER2000 separately? I am lost!
Thanks Guys!
I would recommend using XAMPP, however, it uses MySQL not MS SQL. Im not even sure if you can get apache and php to work with MS SQL (well, you probably can but I'll guarantee it's more effort than it is worth).
XAMPP is an all-in-one wunderkind php development kit. (without an IDE unfortunately)
XAMPP is an all-in-one wunderkind php development kit. (without an IDE unfortunately)
$me = new Person();
if (isset($_COOKIE)){
$me->eat($_COOKIE);
} else { $me->starve(); }
if (isset($_COOKIE)){
$me->eat($_COOKIE);
} else { $me->starve(); }
Hi,
You can use XAMPP.. No issues..
But yes you need to setup and install MSSQL Server separately.
Make sure yyou create a tble in MS SQL and then run queries in MS SQL.
XAMPP contains an extension for MSSQL and usually its enabled by default.
You can check php.ini file to ensure this (<dir>\xampp\apache\bin\php.ini). Open this file and make sure extension=php_mssql.dll and extension=php_pdo_mssql.dll are enabled (there is no ; in front of these extensions).
This will enable you to access mssql server database.
Refer this link for more info: http://www.php.net/manual/en/ref.mssql.php
You can use XAMPP.. No issues..
But yes you need to setup and install MSSQL Server separately.
Make sure yyou create a tble in MS SQL and then run queries in MS SQL.
XAMPP contains an extension for MSSQL and usually its enabled by default.
You can check php.ini file to ensure this (<dir>\xampp\apache\bin\php.ini). Open this file and make sure extension=php_mssql.dll and extension=php_pdo_mssql.dll are enabled (there is no ; in front of these extensions).
This will enable you to access mssql server database.
Refer this link for more info: http://www.php.net/manual/en/ref.mssql.php
•
•
•
•
Hi,
You can use XAMPP.. No issues..
But yes you need to setup and install MSSQL Server separately.
Make sure yyou create a tble in MS SQL and then run queries in MS SQL.
XAMPP contains an extension for MSSQL and usually its enabled by default.
You can check php.ini file to ensure this (<dir>\xampp\apache\bin\php.ini). Open this file and make sure extension=php_mssql.dll and extension=php_pdo_mssql.dll are enabled (there is no ; in front of these extensions).
This will enable you to access mssql server database.
Refer this link for more info: http://www.php.net/manual/en/ref.mssql.php
I haven't tried it yet really but I think there are slight changes on the syntax (I THINK). I saw the functions used, its quite similar. except for the MSSQL_ prefix. follow the link by sikka_varun.
There are definitely differences in SQL language between MySQL and MS SQL (just as there are between other dbs). You must check all statements thoroughly. If you've used one of the PEAR/PECL database extensions, ensure that the one you've used can be configured for MSSQL. If you're not using a data abstraction layer, the changes should be quite straightforward.
e.g.
MS SQL: SELECT TOP(7) * FROM table1 ORDER BY field3
MYSQL: SELECT * FROM table1 ORDER BY field3 LIMIT 7
MS SQL doesn't support batch updates either as far as I know (you'll have to write individual statements or use a php loop).
Due to this, if you've got some php code that builds SQL clauses and then puts them together just before running them, you'll have to sort through this code as well, just in case.
An interesting article here:
http://troels.arvin.dk/db/rdbms/
e.g.
MS SQL: SELECT TOP(7) * FROM table1 ORDER BY field3
MYSQL: SELECT * FROM table1 ORDER BY field3 LIMIT 7
MS SQL doesn't support batch updates either as far as I know (you'll have to write individual statements or use a php loop).
Due to this, if you've got some php code that builds SQL clauses and then puts them together just before running them, you'll have to sort through this code as well, just in case.
An interesting article here:
http://troels.arvin.dk/db/rdbms/
If you don't reply to your own thread or you can't find the solved link - you're off my Christmas list - permanently! Bah humbug!
![]() |
Similar Threads
- Ruby, PHP, Apache & MySQL (Ruby)
- php and apache on linux (PHP)
- trouble setting up PHP with apache (PHP)
- working PHP with Apache is it posssible (PHP)
- PHP as Apache module vs CGI (Linux Servers and Apache)
- Set up manually, php 5.0 with apache's compatible version (PHP)
- "odbc_fetch_array()" compatible with wich version of PHP with apache web server (PHP)
Other Threads in the PHP Forum
- Previous Thread: Image Uploading error??
- Next Thread: dynamic form issue
Views: 716 | Replies: 8
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access ajax apache api array beginner binary broken cakephp checkbox class cms code codingproblem cron curl database date directory display download dynamic echo email error file files folder form forms function functions google href htaccess html image include insert integration ip java javascript joomla jquery limit link login loop mail menu methods mlm mod_rewrite multiple mysql oop parse paypal pdf php problem query radio random recursion regex remote script search select send server sessions sms soap source space speed sql static structure syntax system table tutorial up-to-date update updates upload url validation validator variable video web wordpress xml youtube






