To start using PHP, you can:
If your server has PHP support enabled, there’s no need for additional setup.
Simply create .php files, place them in your web directory, and the server will automatically parse them.
There’s no need to compile anything or install extra tools.
Since PHP is free, most web hosts provide PHP support.
However, if your server does not support PHP, you need to:
To check your PHP version, use the phpversion()
function.
Show the PHP version:
echo phpversion(); |