Have never worked with either so just at this point trying to get the environment up and running.

Yesterday I downloaded:
1. SQL Server 2005 Express Edition with Advanced Services SP2

2. Microsoft SQL Server 2005 Express Edition Toolkit

3.HTML-Kit build 292
did a PHP hello world and was not able to preview it in HTML-Kit IDE

Now I am reading posts on other boards that I have to
Set up a web server on my network (which is wireless)
Set up a domain on my network

There has to be an easier way

Any insights would be very much appreciated.

Thanks,
b

Dani AI

Generated

Good pointers already from and . The immediate problem with seeing a PHP "hello world" inside HTML-Kit is not PHP itself but how you preview it: HTML-Kit will show the file contents if you open it directly. PHP must be run through an HTTP server. For local work you do not need a network domain or router changes — use localhost. Put your .php file in your web server document root and open it in a browser as , or configure HTML-Kit to launch that URL for preview.

Since you downloaded SQL Server Express and want PHP to talk to it, use Microsoft's PHP drivers for SQL Server (sqlsrv / pdo_sqlsrv). Pick the driver build that matches your PHP version and architecture (TS/NTS, x86/x64), copy the DLLs to PHP's ext folder, enable them in php.ini, then restart the web server. Also make sure SQL Server allows the connection: enable TCP/IP in SQL Server Configuration Manager, start the SQL Browser service if you use a named instance, and pick the right authentication mode (Windows vs SQL login). Official guidance and downloads are at the Microsoft docs and repo:

msphpsql releases on GitHub

Quick checklist for troubleshooting: confirm PHP is served (use phpinfo()), verify the sqlsrv/pdo_sqlsrv extensions are listed, check Apache/IIS and SQL Server logs for errors, and allow port 80/your chosen port through the Windows firewall if you need access from other machines. A tiny test you can run on the server to confirm PHP is active:

<?php
phpinfo();
?>

Recommended Answers

All 2 Replies

All you need is Just install wamp and it will configure apache, mysql and php for you :)

Yes, the two most common dev platforms are the WAMP(Windows, Apache, MySQL, PHP) and LAMP(Linux, Apache, MySQL, PHP) stacks. If you are using Windows, as nav33n said, you would want the WAMP stack.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.