I do agree with Steve that you are probably going to need a server, however, I have found that people can have trouble setting up and using Apache. And even when they do, they may still need to install MySql.
What you need is a WAMP server. One of the most popular is XAMPP. I have been recommending it for years and, more importantly, using it for years to do just what you want to (additionally, I do all of my web development locally, not on my actual website and this facilitates that).
It will give you an Apache server (already configured), plus PHP and MySql if you need them (a few other things too, which I don't use).
If you install to the default location, then the server
localhost will be at C:\xampp\htdocs. Just copy your stuff there and point your browser at, for instance,
If you want to use your files in their current directory, then you need to change the server root in a configuration file as explained here.
It is really all quite simple, but feel free to ask questions if it is not clear.