Introduction to PHP And MySQL
Presented By :- Fahim Shaikh
Slides based on PHP manual “Getting Started” from
w3schools
PHP - Overview
Introduction
 What Is PHP?
 How Does PHP Work?
 What Can PHP Do?
 Why PHP?
 What Do I Need?
Installation
Tutorial
What Is PHP?
PHP (PHP: Hypertext Preprocessor)
 PHP is a server-side scripting language
 executed on the server
 PHP is free to download and easy to use.
 Developed by Rasmus Lerdorf in 1995
 Latest Version: 8
Server-Side vs. Client-Side
Server-Side
 Server-side
languages run on
the web server.
 Example:- PHP, Python,
Ruby, Java, and Node.js.
Client-Side
 Client-side
languages run in
the user's web
browser.
 Example:- HTML,
CSS, and JavaScript.
How Does PHP Work?
As Previously mentioned that PHP is a server-
side scripting language which means it runs
in the server.
What can PHP do?
PHP can generate dynamic website
 Two Type Of Website
 Dynamic Website (Web Application)
 Example:-blog, news, E-commerce
 Static Website (Informative)
 Example:-Dr-profile, lawyer-profile
Why PHP?
PHP runs on various platforms (Windows,
Linux, Unix, Mac OS X, etc.).
PHP is compatible with almost all servers
used today (Apache, IIS, etc.).
PHP supports a wide range of databases.
PHP is easy to learn and runs efficiently on
the server side.
PHP is free.
PHP Have Big Community.
What do I need?
 install a web server, such as Apache
 install PHP
 install a database as well, such as MySQL.
OR
 A PHP version and MySQL come out of the box
when you install XAMPP server. You can use other
development server instead of XAMPP such as
WAMPSERVER.
 Download From Here: XAMPP.
Where to Write Code?
 Notepad/Notepad++
 PHPStrom
 Net Beans
 VS Code
 Sublime Text 3
Why Sublime Text?
 It's available for Windows, macOS, and
Linux
 Lightweight
 Easily Availability
Tutorial
Your first PHP-enabled page
Examples:-
First PHP-enabled page
Create a file named hello.php
Put it in your web servers directory
 Example:
<?php echo "<h1>Heading</h1>"; ?>
<?php echo “<b>Bold Text</b></br>"; ?>
<?php echo "<p>Paragraph</p>"; ?>
Example Task
Personal.php
School.php
College.php
City.php
State.php
Dream.php
Hobby.php
THANK YOU

Introduction of PHP And MySql presentation

  • 1.
    Introduction to PHPAnd MySQL Presented By :- Fahim Shaikh Slides based on PHP manual “Getting Started” from w3schools
  • 2.
    PHP - Overview Introduction What Is PHP?  How Does PHP Work?  What Can PHP Do?  Why PHP?  What Do I Need? Installation Tutorial
  • 3.
    What Is PHP? PHP(PHP: Hypertext Preprocessor)  PHP is a server-side scripting language  executed on the server  PHP is free to download and easy to use.  Developed by Rasmus Lerdorf in 1995  Latest Version: 8
  • 4.
    Server-Side vs. Client-Side Server-Side Server-side languages run on the web server.  Example:- PHP, Python, Ruby, Java, and Node.js. Client-Side  Client-side languages run in the user's web browser.  Example:- HTML, CSS, and JavaScript.
  • 5.
    How Does PHPWork? As Previously mentioned that PHP is a server- side scripting language which means it runs in the server.
  • 6.
    What can PHPdo? PHP can generate dynamic website  Two Type Of Website  Dynamic Website (Web Application)  Example:-blog, news, E-commerce  Static Website (Informative)  Example:-Dr-profile, lawyer-profile
  • 7.
    Why PHP? PHP runson various platforms (Windows, Linux, Unix, Mac OS X, etc.). PHP is compatible with almost all servers used today (Apache, IIS, etc.). PHP supports a wide range of databases. PHP is easy to learn and runs efficiently on the server side. PHP is free. PHP Have Big Community.
  • 8.
    What do Ineed?  install a web server, such as Apache  install PHP  install a database as well, such as MySQL. OR  A PHP version and MySQL come out of the box when you install XAMPP server. You can use other development server instead of XAMPP such as WAMPSERVER.  Download From Here: XAMPP.
  • 9.
    Where to WriteCode?  Notepad/Notepad++  PHPStrom  Net Beans  VS Code  Sublime Text 3 Why Sublime Text?  It's available for Windows, macOS, and Linux  Lightweight  Easily Availability
  • 10.
  • 11.
    First PHP-enabled page Createa file named hello.php Put it in your web servers directory  Example: <?php echo "<h1>Heading</h1>"; ?> <?php echo “<b>Bold Text</b></br>"; ?> <?php echo "<p>Paragraph</p>"; ?>
  • 12.
  • 13.