In order to develop and run PHP Web pages vital components need to be installed on your computer system.
1. Web Server - PHP will work with virtually all Web Server software, including Microsoft's Internet Information Server (IIS) but most often used is freely availble Apache Server.
2. Database - PHP will work with virtually all database software, including Oracle, Sybase but most commonly used is freely available MySQL database.
PHP available Softwares are:
WAMP Server (Windows, Apache, MySQL, PHP)
LAMP Server (Linux, Apache, MySQL, PHP)
MAMP Server(Macintosh, Apache, Mysql and PHP)
XAMPP Server - X meant for Operating System, Apache, MySQL, PHP, and PERL.
To Save the File:
To run PHP file, put the file in 'htdocs' folder which is in 'c:\xampp\htdocs' and in browser type the URL 'http://localhost/filename.php' or 'http://127.0.0.1/filename.php'