SlideShare a Scribd company logo
PEMROGRAMAN BERBASIS WEB
UNIVERSITAS TEKNOKRAT INDONESIA
FAKULTAS TEKNIK DAN ILMU KOMPUTER
YUSRA FERNANDO, S.KOM., M.KOM
by:
20192019
Web Base Programming
1
PHP (PHP: Hypertext Preprocessor)
UNIVERSITAS TEKNOKRAT INDONESIA
FAKULTAS TEKNIK DAN ILMU KOMPUTER
YUSRA FERNANDO, S.KOM., M.KOM
by:
20192019
server side scripting
2
3
PROFIL
Nama : Yusra Fernando, S.Kom., M.Kom.
Status : Menikah
Anak: Muhammad Ibrahim Hanif Fernando
Pendidikan : S1, Teknik Informatika/(Ti) (Teknokrat 2004)
S2, Ilmu Komputer/(Cs) (IPB 2012)
Email : yusra.fernando@teknokrat.ac.id
Pengalaman
Pekerjaan :  Asisten Dosen STMIK TEKNOKRAT 2006-2008
 Dosen STMIK TEKNOKRAT 2009 - 2017
 Dosen UNIVERSITAS TEKNOKRAT INDONESIA 2017 – Sekarang
 Tim Kerja Bidang Kemahasiswaan (2015-2017)
 Wakil Dekan III FTIK (2017)
 Tim Kerja Wakil Rektor III Bidang Kemahasiswaan (2017- 2019)
 Wakil Dekan III FEB (2019)
No. Telepon : 0852 7920 9118 (sms, line, WA)
yusra.fernando@teknokrat.ac.id
+6252 7920 9118
+6252 7920 9118
Yusra Fernando, M.Kom
CONTACT ME
4
Objective Course
 To get to know the server side scripting
 To get to know the php script
 To get to know the PHP variables and data types
5
Motivation
6
Introduction PHP
7
What is PHP?
• PHP is an acronym for "PHP: Hypertext Preprocessor"
• PHP is a widely-used, open source scripting language
• PHP scripts are executed on the server
• PHP is free to download and use
8
What is a PHP File?
• PHP files can contain text, HTML, CSS, JavaScript, and PHP code
• PHP code are executed on the server, and the result is returned
to the browser as plain HTML
• PHP files have extension ".php"
9
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
10
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 free. Download it from the official PHP resource: www.php.net
• PHP is easy to learn and runs efficiently on the server side
11
What Do I Need?
• To start using PHP, you can:
• Find a web host with PHP and MySQL support
• Install a web server on your own PC, and then install PHP and
MySQL
12
Set Up PHP on Your Own PC
• However, if your server does not support PHP, you must:
• install a web server
• install PHP
• install a database, such as MySQL
• The official PHP website (PHP.net) has installation instructions for
PHP:http://php.net/manual/en/install.php
13
The official PHP website (PHP.net) has installation instructions for
PHP:http://php.net/manual/en/install.php
14
15
PHP Architecture
16
BEKERJA DENGAN PHP
• Dibutuhkan 3 buah software, yaitu :
• Web Server (Apache, IIS, PWS, Xitami, dll) untuk menjalankan PHP.
• Program PHP (PHP 4 atau PHP 5) untuk mengeksekusi script PHP.
• Database Server (MySQL, Oracle, Ms SQL Server, dll) untuk bekerja dengan
database.
17
Yang Digunakan
 Web Server Apache (http://www.apache.org)
 PHP 4 (http://www.php.net)
 Database Server MySQL (http://www.mysql.com)
18
INSTALASI PHP
 Apache, PHP, dan MySQL diinstal secara sendiri-sendiri, lalu
dikonfigurasi.
 Menggunakan paket PHP installer :
 XAMPP
 EasyPHP
 PHPTriad
 AppServ
 Paket PHP installer yang disarankan : AppServ atau XAMPP.
19
PHP Editor
 Notepad
 Dreamweaver
 Zend Studio
 PHP Editor
20
Penulisan Script PHP
 Embedded Script
 Non Embedded Script
21
Embedded Script
 Script PHP diletakkan di antara tag-tag HTML.
 Contoh :
<html>
<head>
<title>Embedded Script</title>
</head>
<body>
<?php
echo "Ini adalah contoh embedded script";
?>
</body>
</html>
22
Non Embedded Script
 tag-tag HTML yang diletakkan di dalam script PHP. Contoh :
<?php
echo "<html>";
echo "<head>";
echo "<title>Non Embedded Script</title>";
echo "</head>";
echo "<body>";
echo "Ini adalah contoh non embedded script";
echo "</body>";
echo "</html>";
?>
23
Style Kode PHP
 Style Standar :
<?php
echo "Ini adalah contoh style PHP";
?>
 Short Style :
<?
echo "Ini adalah contoh short style";
?>
24
Style Kode PHP
 Style Script :
<script language='php'>
echo "Ini adalah style javascript";
</script>
 Style ASP :
<%
echo "Ini adalah contoh style asp";
%>
Get Started ..
UNIVERSITAS TEKNOKRAT INDONESIA
FAKULTAS TEKNIK DAN ILMU KOMPUTER
YUSRA FERNANDO, S.KOM., M.KOM
20192019
25
Create New Folder
Create new php-myName1.
2. php-myName
Create new php-myName
26
Basic PHP Syntax
• A PHP script can be placed anywhere in the document.
• A PHP script starts with <?php and ends with ?>:
27
The PHP echo Statement
Save file by typing: echo.php
28
PHP Case Sensitivity
In PHP, all keywords
(e.g. if, else, while, echo, etc.), classes,
functions, and user-defined functions are
NOT case-sensitive.
29
PHP Case Sensitivity
Save file by typing: heloword.php
30
True False
$variable $var!able
$choice $-choice
$te98 $98te
$month_1 $month 1
PHP Variables
31
Creating (Declaring) PHP Variables
Example 01 Example 02
Save file by typing: var01.php Save file by typing: var02.php 32
0201
PHP 5 Form Handling
33
Save file by typing: form.php
03
PHP 5 Form Handling (continue)
34
Save file by typing: form.php
04
PHP Form Input Arithmatic
35
Save file by typing: form_aritmatic.php05
PHP Form Input Arithmatic (continue)
Save file by typing: result.php
36
06
Resume
37
 PHP is an acronym for "PHP: Hypertext Preprocessor“
 PHP files can contain text, HTML, CSS, JavaScript, and PHP code
 PHP code are executed on the server, and the result is returned to the browser as
plain HTML
 PHP files have extension ".php"
True False
$variable $var!able
$choice $-choice
$te98 $98te
$month_1 $month 1
• A PHP script starts with <?php and ends with ?>:
Exercise ..
UNIVERSITAS TEKNOKRAT INDONESIA
FAKULTAS TEKNIK DAN ILMU KOMPUTER
YUSRA FERNANDO, S.KOM., M.KOM
20192019
38
Next ….
39
Product Name : ….
Product Price : ….
Qty : ….
Discount (20%) : ….
Total Price : ….
Excersice
Exercise 1
40
Save file by name: F1_Aritmatika.php
Save file by name: Result_Aritmatika.php
01 02
Thank you ...
UNIVERSITAS TEKNOKRAT INDONESIA
FAKULTAS TEKNIK DAN ILMU KOMPUTER
YUSRA FERNANDO, S.KOM., M.KOM
20192019
41

More Related Content

What's hot (11)

PPTX
Php presentation
Helen Pitlick
 
PPTX
Finalwordpress
yash pastagiya
 
PPT
Php1
mohamed yusuf
 
PDF
Php tutorial
aashimasharma232
 
PPTX
Word press
Brian Lucas
 
PPT
Spider Course Day 1
Harishankaran K
 
PDF
Php 1
Fajar Baskoro
 
PPT
Php intro
Jennie Gajjar
 
PDF
Php training in bhubaneswar
litbbsr
 
PPTX
Thinking of business website? Go for PHP or Wordpress
Kaspar Lavik
 
PPTX
Php reports sumit
Sumit Biswas
 
Php presentation
Helen Pitlick
 
Finalwordpress
yash pastagiya
 
Php tutorial
aashimasharma232
 
Word press
Brian Lucas
 
Spider Course Day 1
Harishankaran K
 
Php intro
Jennie Gajjar
 
Php training in bhubaneswar
litbbsr
 
Thinking of business website? Go for PHP or Wordpress
Kaspar Lavik
 
Php reports sumit
Sumit Biswas
 

Similar to Chp 08 php (shared) (20)

PPT
Php unit i
prakashvs7
 
PPT
PHP LICTURES ..........
Rashid Ahmad
 
PPT
Php intro
Jennie Gajjar
 
PPT
Php intro
Jennie Gajjar
 
PPTX
Php intro
sana mateen
 
PPTX
PHP ITCS 323
Sleepy Head
 
PDF
Php tutorial
Niit
 
PPTX
Introduction to PHP from Beginning to End
christopherneo4
 
PDF
Php tutorial
vigneswaran54
 
PDF
Php tutorial
sushil kumar
 
PDF
Php tutorial
Nguyễn Hoà
 
PPT
Php hypertext pre-processor
Siddique Ibrahim
 
PDF
Php introduction
Ahmed Elshal
 
PPTX
Chapter onehsfhjfgjhdjhdhfsGfhghsgasg (2).pptx
berihun18
 
PPTX
PHP Hypertext Preprocessor
adeel990
 
PDF
How PHP works
Atlogys Technical Consulting
 
PPT
INTRODUCTION TO PHP.ppt
WASIYANILOFARDPSNACH
 
PDF
Php Interview Questions
UmeshSingh159
 
PPT
Federico Feroldi Php In Yahoo
Federico Feroldi
 
PPTX
PHP Course and Training
TechedoTechnologiesI
 
Php unit i
prakashvs7
 
PHP LICTURES ..........
Rashid Ahmad
 
Php intro
Jennie Gajjar
 
Php intro
Jennie Gajjar
 
Php intro
sana mateen
 
PHP ITCS 323
Sleepy Head
 
Php tutorial
Niit
 
Introduction to PHP from Beginning to End
christopherneo4
 
Php tutorial
vigneswaran54
 
Php tutorial
sushil kumar
 
Php tutorial
Nguyễn Hoà
 
Php hypertext pre-processor
Siddique Ibrahim
 
Php introduction
Ahmed Elshal
 
Chapter onehsfhjfgjhdjhdhfsGfhghsgasg (2).pptx
berihun18
 
PHP Hypertext Preprocessor
adeel990
 
INTRODUCTION TO PHP.ppt
WASIYANILOFARDPSNACH
 
Php Interview Questions
UmeshSingh159
 
Federico Feroldi Php In Yahoo
Federico Feroldi
 
PHP Course and Training
TechedoTechnologiesI
 
Ad

More from YUSRA FERNANDO (20)

PDF
Vs Code - Keyboard-Shortcuts-Windows.pdf
YUSRA FERNANDO
 
PDF
Chp 03 - Software PTI - (Shared).pdf
YUSRA FERNANDO
 
PDF
Chp 04 - Hardware PTI - (Shared).pdf
YUSRA FERNANDO
 
PDF
7. DATA RESOURCE MANAGEMENT.pdf
YUSRA FERNANDO
 
PDF
8. IT and Decision Making.pdf
YUSRA FERNANDO
 
PDF
06 - IT Infrastructure (shared).pdf
YUSRA FERNANDO
 
PDF
Fox, Richard - Information Technology _ An Introduction for Today’s Digital W...
YUSRA FERNANDO
 
PDF
Bab 1 pengantar desain web
YUSRA FERNANDO
 
PDF
Chapter 3.3 css - tugas css (shared)
YUSRA FERNANDO
 
PDF
Javascript yusra 2021 (shared)
YUSRA FERNANDO
 
PDF
3. latihan css 01 (shared)
YUSRA FERNANDO
 
PDF
2 property css (shared)
YUSRA FERNANDO
 
PDF
Css pengenalan css
YUSRA FERNANDO
 
PPTX
Chapter 1 introduction html (shared)
YUSRA FERNANDO
 
PDF
Chapter 00 introduction - web desain -(shared)
YUSRA FERNANDO
 
PDF
Kepribadian dan Nilai
YUSRA FERNANDO
 
PDF
Emosi dan Suasana Hati
YUSRA FERNANDO
 
PDF
Sikap dan Kepuasan Kerja
YUSRA FERNANDO
 
PDF
Konsep Dasar Perilaku Organisasi
YUSRA FERNANDO
 
PDF
Konsep Dasar Perilaku Organisasi
YUSRA FERNANDO
 
Vs Code - Keyboard-Shortcuts-Windows.pdf
YUSRA FERNANDO
 
Chp 03 - Software PTI - (Shared).pdf
YUSRA FERNANDO
 
Chp 04 - Hardware PTI - (Shared).pdf
YUSRA FERNANDO
 
7. DATA RESOURCE MANAGEMENT.pdf
YUSRA FERNANDO
 
8. IT and Decision Making.pdf
YUSRA FERNANDO
 
06 - IT Infrastructure (shared).pdf
YUSRA FERNANDO
 
Fox, Richard - Information Technology _ An Introduction for Today’s Digital W...
YUSRA FERNANDO
 
Bab 1 pengantar desain web
YUSRA FERNANDO
 
Chapter 3.3 css - tugas css (shared)
YUSRA FERNANDO
 
Javascript yusra 2021 (shared)
YUSRA FERNANDO
 
3. latihan css 01 (shared)
YUSRA FERNANDO
 
2 property css (shared)
YUSRA FERNANDO
 
Css pengenalan css
YUSRA FERNANDO
 
Chapter 1 introduction html (shared)
YUSRA FERNANDO
 
Chapter 00 introduction - web desain -(shared)
YUSRA FERNANDO
 
Kepribadian dan Nilai
YUSRA FERNANDO
 
Emosi dan Suasana Hati
YUSRA FERNANDO
 
Sikap dan Kepuasan Kerja
YUSRA FERNANDO
 
Konsep Dasar Perilaku Organisasi
YUSRA FERNANDO
 
Konsep Dasar Perilaku Organisasi
YUSRA FERNANDO
 
Ad

Recently uploaded (20)

PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PPTX
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PDF
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
PDF
July Patch Tuesday
Ivanti
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
July Patch Tuesday
Ivanti
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 

Chp 08 php (shared)

  • 1. PEMROGRAMAN BERBASIS WEB UNIVERSITAS TEKNOKRAT INDONESIA FAKULTAS TEKNIK DAN ILMU KOMPUTER YUSRA FERNANDO, S.KOM., M.KOM by: 20192019 Web Base Programming 1
  • 2. PHP (PHP: Hypertext Preprocessor) UNIVERSITAS TEKNOKRAT INDONESIA FAKULTAS TEKNIK DAN ILMU KOMPUTER YUSRA FERNANDO, S.KOM., M.KOM by: 20192019 server side scripting 2
  • 3. 3
  • 4. PROFIL Nama : Yusra Fernando, S.Kom., M.Kom. Status : Menikah Anak: Muhammad Ibrahim Hanif Fernando Pendidikan : S1, Teknik Informatika/(Ti) (Teknokrat 2004) S2, Ilmu Komputer/(Cs) (IPB 2012) Email : [email protected] Pengalaman Pekerjaan :  Asisten Dosen STMIK TEKNOKRAT 2006-2008  Dosen STMIK TEKNOKRAT 2009 - 2017  Dosen UNIVERSITAS TEKNOKRAT INDONESIA 2017 – Sekarang  Tim Kerja Bidang Kemahasiswaan (2015-2017)  Wakil Dekan III FTIK (2017)  Tim Kerja Wakil Rektor III Bidang Kemahasiswaan (2017- 2019)  Wakil Dekan III FEB (2019) No. Telepon : 0852 7920 9118 (sms, line, WA) [email protected] +6252 7920 9118 +6252 7920 9118 Yusra Fernando, M.Kom CONTACT ME 4
  • 5. Objective Course  To get to know the server side scripting  To get to know the php script  To get to know the PHP variables and data types 5
  • 8. What is PHP? • PHP is an acronym for "PHP: Hypertext Preprocessor" • PHP is a widely-used, open source scripting language • PHP scripts are executed on the server • PHP is free to download and use 8
  • 9. What is a PHP File? • PHP files can contain text, HTML, CSS, JavaScript, and PHP code • PHP code are executed on the server, and the result is returned to the browser as plain HTML • PHP files have extension ".php" 9
  • 10. 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 10
  • 11. 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 free. Download it from the official PHP resource: www.php.net • PHP is easy to learn and runs efficiently on the server side 11
  • 12. What Do I Need? • To start using PHP, you can: • Find a web host with PHP and MySQL support • Install a web server on your own PC, and then install PHP and MySQL 12
  • 13. Set Up PHP on Your Own PC • However, if your server does not support PHP, you must: • install a web server • install PHP • install a database, such as MySQL • The official PHP website (PHP.net) has installation instructions for PHP:http://php.net/manual/en/install.php 13
  • 14. The official PHP website (PHP.net) has installation instructions for PHP:http://php.net/manual/en/install.php 14
  • 16. 16 BEKERJA DENGAN PHP • Dibutuhkan 3 buah software, yaitu : • Web Server (Apache, IIS, PWS, Xitami, dll) untuk menjalankan PHP. • Program PHP (PHP 4 atau PHP 5) untuk mengeksekusi script PHP. • Database Server (MySQL, Oracle, Ms SQL Server, dll) untuk bekerja dengan database.
  • 17. 17 Yang Digunakan  Web Server Apache (http://www.apache.org)  PHP 4 (http://www.php.net)  Database Server MySQL (http://www.mysql.com)
  • 18. 18 INSTALASI PHP  Apache, PHP, dan MySQL diinstal secara sendiri-sendiri, lalu dikonfigurasi.  Menggunakan paket PHP installer :  XAMPP  EasyPHP  PHPTriad  AppServ  Paket PHP installer yang disarankan : AppServ atau XAMPP.
  • 19. 19 PHP Editor  Notepad  Dreamweaver  Zend Studio  PHP Editor
  • 20. 20 Penulisan Script PHP  Embedded Script  Non Embedded Script
  • 21. 21 Embedded Script  Script PHP diletakkan di antara tag-tag HTML.  Contoh : <html> <head> <title>Embedded Script</title> </head> <body> <?php echo "Ini adalah contoh embedded script"; ?> </body> </html>
  • 22. 22 Non Embedded Script  tag-tag HTML yang diletakkan di dalam script PHP. Contoh : <?php echo "<html>"; echo "<head>"; echo "<title>Non Embedded Script</title>"; echo "</head>"; echo "<body>"; echo "Ini adalah contoh non embedded script"; echo "</body>"; echo "</html>"; ?>
  • 23. 23 Style Kode PHP  Style Standar : <?php echo "Ini adalah contoh style PHP"; ?>  Short Style : <? echo "Ini adalah contoh short style"; ?>
  • 24. 24 Style Kode PHP  Style Script : <script language='php'> echo "Ini adalah style javascript"; </script>  Style ASP : <% echo "Ini adalah contoh style asp"; %>
  • 25. Get Started .. UNIVERSITAS TEKNOKRAT INDONESIA FAKULTAS TEKNIK DAN ILMU KOMPUTER YUSRA FERNANDO, S.KOM., M.KOM 20192019 25
  • 26. Create New Folder Create new php-myName1. 2. php-myName Create new php-myName 26
  • 27. Basic PHP Syntax • A PHP script can be placed anywhere in the document. • A PHP script starts with <?php and ends with ?>: 27
  • 28. The PHP echo Statement Save file by typing: echo.php 28
  • 29. PHP Case Sensitivity In PHP, all keywords (e.g. if, else, while, echo, etc.), classes, functions, and user-defined functions are NOT case-sensitive. 29
  • 30. PHP Case Sensitivity Save file by typing: heloword.php 30
  • 31. True False $variable $var!able $choice $-choice $te98 $98te $month_1 $month 1 PHP Variables 31
  • 32. Creating (Declaring) PHP Variables Example 01 Example 02 Save file by typing: var01.php Save file by typing: var02.php 32 0201
  • 33. PHP 5 Form Handling 33 Save file by typing: form.php 03
  • 34. PHP 5 Form Handling (continue) 34 Save file by typing: form.php 04
  • 35. PHP Form Input Arithmatic 35 Save file by typing: form_aritmatic.php05
  • 36. PHP Form Input Arithmatic (continue) Save file by typing: result.php 36 06
  • 37. Resume 37  PHP is an acronym for "PHP: Hypertext Preprocessor“  PHP files can contain text, HTML, CSS, JavaScript, and PHP code  PHP code are executed on the server, and the result is returned to the browser as plain HTML  PHP files have extension ".php" True False $variable $var!able $choice $-choice $te98 $98te $month_1 $month 1 • A PHP script starts with <?php and ends with ?>:
  • 38. Exercise .. UNIVERSITAS TEKNOKRAT INDONESIA FAKULTAS TEKNIK DAN ILMU KOMPUTER YUSRA FERNANDO, S.KOM., M.KOM 20192019 38
  • 39. Next …. 39 Product Name : …. Product Price : …. Qty : …. Discount (20%) : …. Total Price : …. Excersice
  • 40. Exercise 1 40 Save file by name: F1_Aritmatika.php Save file by name: Result_Aritmatika.php 01 02
  • 41. Thank you ... UNIVERSITAS TEKNOKRAT INDONESIA FAKULTAS TEKNIK DAN ILMU KOMPUTER YUSRA FERNANDO, S.KOM., M.KOM 20192019 41