Curriculum
Course: PHP Basic
Login

Curriculum

PHP Basic

PHP Install

0/1

PHP Casting

0/1

PHP Constants

0/1

PHP Magic Constants

0/1

PHP Operators

0/1

PHP Reference

0/276
Text lesson

PHP Install

What Do I Need?

To start using PHP, you can:

  1. Choose a web host that supports PHP and MySQL.
  2. Install a web server on your own computer, and then install PHP and MySQL.

Use a Web Host With PHP Support

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.

Set Up PHP on Your Own PC

However, if your server does not support PHP, you need to:

  1. Install a web server.
  2. Install PHP.
  3. Install a database, such as MySQL.

PHP Version

To check your PHP version, use the phpversion() function.

Example

Show the PHP version:

echo phpversion();