What is PHP
PHP is Open Source server-side programming / Scripting language that is especially suited for web development and can be embedded into HTML.
PHP stands for Hypertext Preprocessor but it’s original name, Personal Home Page. It was created by Ramsum Lerdorf in 1994.
PHP runs on various platforms Windows, Linux, Unix, Mac OS X, etc.
PHP is compatible with almost all servers Apache, IIS, etc.
At Present in 2017 Php 7.2.0 is latest version of PHP
PHP File Extension .php
What we can do with PHP
- Generate Dynamic Page
- Handle button clicks, radio button
- Create Database Application
- Client/server Application
- Student Registration
- Online Course
- Online Shopping cart
- Chat Rooms
Example
How PHP Works
Development Environment
- Operating System – Windows, Linux, Mac etc.
- Web Server – XAMP, WAMP, MAMP etc. §XAMP – Apache + MariaDB + PHP + Perl
- Editor/IDE – NotePad, NotePad ++, NetBeans, Brackets, Eclipse etc.
- Web Browser – Chrome, Firefox etc.
Basic Structure of PHP
Basic Structure of PHP
How to Run PHP on LocalHost
Development Environment
- Operating System – Windows, Linux, Mac etc.
- Editor/IDE – NotePad, NotePad ++, NetBeans, Brackets, Eclipse etc.
- Web Browser – Chrome, Firefox etc.