Course Content
State Management
0/1
Regular Expressions?
0/1
About Lesson

Installation PHP?

You can set up PHP using software bundles like:

  • XAMPP (Windows/Linux)

  • WAMP (Windows)

  • LAMP (Linux)

  • MAMP (Mac)

Steps:

  1. Download and install XAMPP

  2. Place your .php files in the htdocs folder

  3. Start Apache server from the XAMPP control panel

  4. Open browser and navigate to: http://localhost/yourfile.php

What is the PHP file and Extension?

PHP files have the .php extension and contain code inside <?php ?> tags.

PHP
<?php
  // This is a PHP file
  echo "This is my first PHP page.";
?>