PHP script execute on a web server running PHP. To start using PHP, you can find a web host with PHP and MySQL installed or you can install a web server on your own PC, and then install PHP and MySQL.
Install PHP on Your Own PC
To execute PHP script on your own PC you need the following program installed on your computer.
- The Apache Web Server
- The PHP Engine
- The MySQL Database Server
You can either install them individually or choose a pre-configured package for your operating system like XAMPP and WampServer. To install these programs individually you can follow the installation instructions provided on official PHP website (PHP.net): http://php.net/manual/en/install.php