SlideShare a Scribd company logo
Server – side
Technologies
Server-side scripting language (PHP)
MARIO B. CADAY
Instructor I
INTRODUCTION
PHP (Hypertext Preprocessor) is a widely-
used, open-source scripting language that is
especially suited for web development. It is
executed on the server, meaning that PHP
scripts are processed by the server and the
result is sent to the client (usually in the form
of HTML).
Key Features of PHP:
• Open Source: PHP is free to download and use.
• Server-Side Scripting: PHP scripts run on a web server, enabling
the development of dynamic websites that interact with databases
and handle forms.
• Cross-Platform: PHP works on all major operating systems like
Windows, Linux, and macOS.
• Embedded in HTML: PHP can be easily embedded into HTML
code, making it flexible for developers.
• Interacts with Databases: PHP supports a wide range of
databases, including MySQL, PostgreSQL, Oracle, and many
others.
Applications of PHP:
• Dynamic Web Pages: PHP can create dynamic content,
like retrieving information from databases.
• Form Handling: PHP allows websites to handle data
submitted by users through forms.
• Content Management Systems (CMS): Popular CMS
platforms like WordPress, Joomla, and Drupal are built
using PHP.
• E-commerce: Many e-commerce platforms like Magento
and OpenCart are PHP-based.
Basic PHP Syntax:
•A PHP script starts with <?php and ends with ?>.
Here’s a simple example of a PHP script that
outputs "Hello, World!":
Why Use PHP?
• Simplicity: PHP is relatively easy to learn for beginners,
especially for those with basic knowledge of HTML.
• Large Community and Support: Being popular for over
two decades, PHP has extensive documentation and a
large community of developers.
• Scalability: PHP can handle simple websites to large-
scale enterprise applications efficiently.
• PHP continues to be a relevant tool in web development,
especially for server-side programming.
CREATING LOGIN FUNCTIONALITY
•Creating a login system using PHP is a
common task in web development. Below is
a basic example of how to build a simple PHP
login system. It includes a form for users to
enter their credentials, checks the credentials
against stored values (in a database), and
logs the user in if they are correct.
Prerequisites:
•Basic knowledge of HTML, PHP, and SQL.
•A database (e.g., MySQL) to store user
credentials.
Create the Database and Table
Server – side Technologies PHP for web dev.pptx
Fill in the textbox example
‘login_system’
Then click create
Create table ‘users’ then click Go
button
Set user_id in the text field and make sure to
check the Auto increment (A_I) checkbox
Set type to VARCHAR and set the length/Values
to 255
THEN Click Save button
Click insert Tab
Set username and password
Example
Username: test@gmail.com
Password: test12345
Then Click Go Button
Login form HTML
Database Connectivity
Checking form query from users table
In PHP, bind parameters are used to safely
execute SQL queries with prepared statements,
which help prevent SQL injection attacks.
Server – side Technologies PHP for web dev.pptx
Session start()
END
Server – side Technologies PHP for web dev.pptx
Server – side Technologies PHP for web dev.pptx
Login Session

More Related Content

PDF
Summer training report priyanka
PPTX
Web Application Development using PHP Chapter 1
PPTX
PHP Hypertext Preprocessor
PPT
PHP - Introduction to PHP Fundamentals
PPTX
PHP ITCS 323
PPT
Php unit i
PPT
PHP MySQL Workshop - facehook
PPT
php 1
Summer training report priyanka
Web Application Development using PHP Chapter 1
PHP Hypertext Preprocessor
PHP - Introduction to PHP Fundamentals
PHP ITCS 323
Php unit i
PHP MySQL Workshop - facehook
php 1

Similar to Server – side Technologies PHP for web dev.pptx (20)

PPT
PPTX
PHP language presentation
PPTX
Unit 5-PHP Declaring variables, data types, array, string, operators, Expres...
PPTX
Introduction to PHP.pptx
PPT
PHP LICTURES ..........
PPTX
introduction to backend with php 8.X - slide.pptx
PPTX
Chapter onehsfhjfgjhdjhdhfsGfhghsgasg (2).pptx
PDF
HEATH INSURANCE CLAIM MANAGEMENT SYSTEM PROJECT REPORT.
KEY
Using PHP
PPTX
lec1 (1).pptxkeoiwjwoijeoiwjeoijwoeijewoi
PDF
PHP Basics
PPTX
Introduction to PHP from Beginning to End
PPTX
HackU PHP and Node.js
PDF
Php tutorial
PPTX
Php reports sumit
PPT
Intro to PHP for Students and professionals
PPTX
Introduction to php
PPTX
Php mysql classes in navi-mumbai,php-mysql course provider-in-navi-mumbai,bes...
PPT
Prersentation
PDF
waptLab 04.pdfwaptLab09 tis lab is used for college lab exam
PHP language presentation
Unit 5-PHP Declaring variables, data types, array, string, operators, Expres...
Introduction to PHP.pptx
PHP LICTURES ..........
introduction to backend with php 8.X - slide.pptx
Chapter onehsfhjfgjhdjhdhfsGfhghsgasg (2).pptx
HEATH INSURANCE CLAIM MANAGEMENT SYSTEM PROJECT REPORT.
Using PHP
lec1 (1).pptxkeoiwjwoijeoiwjeoijwoeijewoi
PHP Basics
Introduction to PHP from Beginning to End
HackU PHP and Node.js
Php tutorial
Php reports sumit
Intro to PHP for Students and professionals
Introduction to php
Php mysql classes in navi-mumbai,php-mysql course provider-in-navi-mumbai,bes...
Prersentation
waptLab 04.pdfwaptLab09 tis lab is used for college lab exam
Ad

More from MarioCaday2 (11)

PPTX
Model View Controller-Introduction-Overview.pptx
PPTX
Intro to javascript for web development.pptx
PPTX
004_Private and public attributes and methods.pptx
PPTX
Insert Carousel slider in HYPERTEXT MARKUP LANGUAGE.pptx
PPTX
Parent and Child Classes in Object Oriented Programming.pptx
PPTX
TESDA-TMC1 - Trainers Methodology Part 5
PPT
Introduction to System Analysis and Design
PPTX
004_integralpartsofcomputersystem-180706085055.pptx
PPTX
x-introduction-to-project-management-110720031057-phpapp01-converted.pptx
PPTX
001_Lecture_Introduction to modern Internet
PDF
002_Fundamentals of Computer.pdf
Model View Controller-Introduction-Overview.pptx
Intro to javascript for web development.pptx
004_Private and public attributes and methods.pptx
Insert Carousel slider in HYPERTEXT MARKUP LANGUAGE.pptx
Parent and Child Classes in Object Oriented Programming.pptx
TESDA-TMC1 - Trainers Methodology Part 5
Introduction to System Analysis and Design
004_integralpartsofcomputersystem-180706085055.pptx
x-introduction-to-project-management-110720031057-phpapp01-converted.pptx
001_Lecture_Introduction to modern Internet
002_Fundamentals of Computer.pdf
Ad

Recently uploaded (20)

PPTX
PPH.pptx obstetrics and gynecology in nursing
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
Complications of Minimal Access Surgery at WLH
PDF
Insiders guide to clinical Medicine.pdf
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
RMMM.pdf make it easy to upload and study
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Classroom Observation Tools for Teachers
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
GDM (1) (1).pptx small presentation for students
PPH.pptx obstetrics and gynecology in nursing
human mycosis Human fungal infections are called human mycosis..pptx
Supply Chain Operations Speaking Notes -ICLT Program
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Complications of Minimal Access Surgery at WLH
Insiders guide to clinical Medicine.pdf
2.FourierTransform-ShortQuestionswithAnswers.pdf
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Microbial diseases, their pathogenesis and prophylaxis
RMMM.pdf make it easy to upload and study
Renaissance Architecture: A Journey from Faith to Humanism
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Classroom Observation Tools for Teachers
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Module 4: Burden of Disease Tutorial Slides S2 2025
GDM (1) (1).pptx small presentation for students

Server – side Technologies PHP for web dev.pptx

  • 1. Server – side Technologies Server-side scripting language (PHP) MARIO B. CADAY Instructor I
  • 2. INTRODUCTION PHP (Hypertext Preprocessor) is a widely- used, open-source scripting language that is especially suited for web development. It is executed on the server, meaning that PHP scripts are processed by the server and the result is sent to the client (usually in the form of HTML).
  • 3. Key Features of PHP: • Open Source: PHP is free to download and use. • Server-Side Scripting: PHP scripts run on a web server, enabling the development of dynamic websites that interact with databases and handle forms. • Cross-Platform: PHP works on all major operating systems like Windows, Linux, and macOS. • Embedded in HTML: PHP can be easily embedded into HTML code, making it flexible for developers. • Interacts with Databases: PHP supports a wide range of databases, including MySQL, PostgreSQL, Oracle, and many others.
  • 4. Applications of PHP: • Dynamic Web Pages: PHP can create dynamic content, like retrieving information from databases. • Form Handling: PHP allows websites to handle data submitted by users through forms. • Content Management Systems (CMS): Popular CMS platforms like WordPress, Joomla, and Drupal are built using PHP. • E-commerce: Many e-commerce platforms like Magento and OpenCart are PHP-based.
  • 5. Basic PHP Syntax: •A PHP script starts with <?php and ends with ?>. Here’s a simple example of a PHP script that outputs "Hello, World!":
  • 6. Why Use PHP? • Simplicity: PHP is relatively easy to learn for beginners, especially for those with basic knowledge of HTML. • Large Community and Support: Being popular for over two decades, PHP has extensive documentation and a large community of developers. • Scalability: PHP can handle simple websites to large- scale enterprise applications efficiently. • PHP continues to be a relevant tool in web development, especially for server-side programming.
  • 7. CREATING LOGIN FUNCTIONALITY •Creating a login system using PHP is a common task in web development. Below is a basic example of how to build a simple PHP login system. It includes a form for users to enter their credentials, checks the credentials against stored values (in a database), and logs the user in if they are correct.
  • 8. Prerequisites: •Basic knowledge of HTML, PHP, and SQL. •A database (e.g., MySQL) to store user credentials.
  • 11. Fill in the textbox example ‘login_system’ Then click create
  • 12. Create table ‘users’ then click Go button
  • 13. Set user_id in the text field and make sure to check the Auto increment (A_I) checkbox Set type to VARCHAR and set the length/Values to 255 THEN Click Save button
  • 14. Click insert Tab Set username and password Example Username: test@gmail.com Password: test12345 Then Click Go Button
  • 17. Checking form query from users table
  • 18. In PHP, bind parameters are used to safely execute SQL queries with prepared statements, which help prevent SQL injection attacks.
  • 21. END