How do you install and secure php in windows?

Download & Install a WAMP or XAMPP Server and everything you require to code in php comes with them. If you want to secure wamp or xampp you ought to change the php.ini file and mysql config files and change password for mysql and php localhost