Note that the installation instructions that follow are geared towards installing WAMPSever on Windows 7: while installation on earlier versions of Windows is entirely possible, each OS typically requires its own unique tricks.
If you want to use MySQL with Apache, you could try to download components and modify the default Apache installation manually, but I find it much easier to download and install an entire separate server suite. While there are many options out there, I recommend MAMP.
As we’ve previously discussed, you need a server to host pages that utilize server–side scripting languages. You can, of course, use your hosting provider to serve your PHP files, but makes several assumptions:
You have a hosting provider;
It supports PHP (the majority do, but you need to check)
You’re okay with everyone in the world seeing your work in progress.