PHP Introduction

PHP Introduction

PHP stands for PHP: Hypertext Preprocessor (recursive acronym).

  • PHP is a server-side scripting language designed for web development.
  • PHP files have the extension .php.
  • PHP can generate dynamic page content.
  • PHP can create, open, read, write, delete, and close files on the server.
  • PHP can collect form data.
  • PHP can send and receive cookies.
  • PHP can encrypt data.
  • PHP works with various databases (MySQL, PostgreSQL, Oracle, etc.).
  • PHP is free and open source.

Basic PHP File Structure

<!DOCTYPE html>
<html>
<body>

<?php
// PHP code goes here
echo "Hello World!";
?>

</body>
</html>