PHP Installation
How to Start Using PHP?
To start using PHP, you can:
- Use a web host with PHP and database support
- Install a web server on your own PC, and then install PHP and a database
1. Use a Web Host With PHP Support
If your web host already has support for PHP, you do not need to do anything.
Just create some .php files, place them in your web directory, and the server
will automatically parse them for you.
You do not need to compile anything or install any extra tools.
Because PHP is free, most web hosts offer PHP support.
2. Set Up PHP on Your Own PC
However, if your web server does not support PHP, you must:
- install a web server
- install PHP
- install a database, such as MySQL
The official PHP website (PHP.net) has installation instructions for PHP: http://php.net/manual/en/install.php
PHP Version
To check your php version you can use the phpversion() function: