PHP Intro
PHP Intro
PHP
MEET OUT
TEAM
K JAYA PRASAD-R20CA155
MOHAMMED SAAD-R20CA153
Bhushan KUMAR-R20CA135
AGENDA
Introduction
Characteristics of PhP
Syntax ex of php
PRESENTATION TITLE 3
INTRODUCTION
The term PHP is an acronym for PHP:
Hypertext Preprocessor. PHP is a server-
side scripting language designed
specifically for web development. It is
open-source which means it is free to
download and use. It is very simple to
learn and use.
4
WHAT IS PHP
FILE
• PHP files can contain text, HTML, CSS,
JavaScript, and PHP code
• PHP code is executed on the server, and
the result is returned to the browser as
plain HTML
• PHP files have extension ".php"
5
WHAT CAN PHP
DO
• 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 add, delete, modify data in your database
• PHP can be used to control user-access
• PHP can encrypt data
6
WHY PHP?
Macos iis
linux
PRESENTATION TITLE 7
CHARACTERISTICS OF PHP
8
SYNTAX AND EXAMPLE OF PHP
syntax EXAMPLE
<html>
<?php
<head>
PHP code goes here
<title>PHP Example</title>
?>
</head>
<body>
<?php echo "Hello, World! This is PHP
code";?>
</body>
</html>
9
Output:Hello, World! This is PHP code
2ND EXAMPLE OF
PHP
<!DOCTYPE html>
<html>
<body>
<?php
$txt1 = "Sum of x and y is:";
$x = 1234;
$y = 4321;
11