PHP Introduction

PHP Introduction Tutorial will explain you About PHP, PHP files, Hypertext Preprocessor, Why PHP? With example.

Recently more people have been building their own websites and so scripting languages have become more important. And also, scripting languages are becoming easier to learn and PHP is one of the easiest and most powerful yet.

About PHP

  • PHP is server side scripting language, capable of generating the HTML pages.
  • PHP stands for “PHP: Hypertext Preprocessor”.
  • Syntax based on Perl, Java, and C.
  • Very good for creating dynamic content.
  • If you want to focus on one system for dynamic content, this is a good one to choose.
  • PHP is simple for beginner and also provide lot of functionality to the professionals.

Why PHP?

  • PHP involves:
    • Simplicity in scripting (generally using the database).
    • Platform independence.
  • PHP is:
    • Primarily designed for web applications.
    • An open source.

PHP File

  • File extension for php are “.php”, “.php3”, “.phtml”.
  • PHP scripts are always enclosed in between two PHP tags: <?php ?>.
  • Program lines end with “;”.
  • PHP files can contain text, HTML tags and scripts.
  • PHP files are returned to the browser as plain HTML.

First PHP code

First PHP Program

Output:

SHARE
Previous articlePHP Basics
Next articlePHP Installation
I am a young Information Systems Security Engineer(CEH). I had started with penetration testing when i am 17 years old. It all started with Kali linux and Metasploit.In free time i will play with Security holes/Bug bounty/Pentesting and Hacking !!!