| | |
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/
"...the woods would be a very silent place if no birds sang except for the best"
All opinions count.
F'enw i yw Mr. Blaidd. Byddwch yn ofalus - dwi'n cnoi.
All opinions count.
F'enw i yw Mr. Blaidd. Byddwch yn ofalus - dwi'n cnoi.
![]() |
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
| Thread Tools | Search this Thread |
# 5.2.10 alexa apache api array beginner binary broken cakephp checkbox class clean clients cms code cron curl database date directory display dissertation dropdown dynamic echo echo$_get[x]changingitintovariable... email encode error fairness file files folder form forms function functions google href htaccess html image images include indentedsubcategory insert ip javascript joomla legislation limit link local login mail memberships menu mlm multiple multipletables mysql mysqlquery newsletters oop open paypal pdf persist php problem provider query radio random recursion remote rss script search server sessions sms sockets source space spam sql syntax system table tutorial update upload url validator variable video web youtube





