100% found this document useful (2 votes)
4K views

Module 1 Web Systems and Technology 2

The document provides an introduction to server-side scripting with PHP. It defines client-side versus server-side scripting, with PHP being an example of the latter. PHP is introduced as a scripting language especially suited for web development. The history and advantages of PHP are discussed, with key advantages being that it is open source, platform independent, simple to learn and code, easily connects to databases, and is a fast programming language.

Uploaded by

Ron Marasigan
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
100% found this document useful (2 votes)
4K views

Module 1 Web Systems and Technology 2

The document provides an introduction to server-side scripting with PHP. It defines client-side versus server-side scripting, with PHP being an example of the latter. PHP is introduced as a scripting language especially suited for web development. The history and advantages of PHP are discussed, with key advantages being that it is open source, platform independent, simple to learn and code, easily connects to databases, and is a fast programming language.

Uploaded by

Ron Marasigan
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 19

Lesson 1|Prepared by: URIEL M.

MELENDRES

ITE 311- WEB SYSTEM AND TECHNOLOGIES 2

Unit 1: Introduction to Server Side Scripting Language (PHP)


A. LEARNING OBJECTIVES:
1. Defined what is PHP and its practical use in web development.
2. Experienced how to install and setup local webservers.
3. Familiarized oneself on local webservers and PHP files manipulation.
B. PRE-TEST
Direction: Encircle the letter of the correct answer.
1. What is the correct abbreviation for PHP?
a. Programming Hypertext Processor c. Perl Hypertext Preprocessor
b. Page Hypertext Programming d. PHP Hypertext Preprocessor
2. Who is the creator of PHP?
a. Andy Gutsman c. Zeev Suraski
b. Rasmus Lerdorf d. Rob Allen
3. When PHP 7.0 released?
a. 2015 c. 2017
b. 2016 d. 2018
4. It requires browsers to run the scripts on the client machine but does not interact with the server while processing the client-
side scripts.
a. Back end c. Client-Side Scripting Language
b. Server Side Scripting Language d. Hypertext Mark-up Language
5. Which of the following is NOT an example of server-side scripting language?
a. PHP c. JavaScript
b. ASP.net d. Perl
6. Which of the following is not included in the top 10 of PHP advantages?
a. Simple and Easy c. Fast
b. Security d. Case Sensitive
7. Which of the following is NOT an application of PHP?
a. eCommerce c. Desktop Application
b. Data representation d. Game Development
8. Which of the following server is intended only for OS X?
a. WAMP c. LAMP
b. XAMPP d. MAMP
9. Which of the following is not really needed when running PHP?
a. Database c. Interpreter
b. Web Server d. Web Browser

1|Web System and Technologies 2 Lecture Note


Lesson 1|Prepared by: URIEL M. MELENDRES

10. Which of the following delimiters is recommended by PHP group to use?


a. Standard PHP script delimiters
b. The <script> element
c. Short PHP script delimiters
d. ASP-style script delimiters

C. CONTENT

1.1 Server-side Scripting Language and PHP


What is the difference between client-side and server-side scripting
language?
The scripts can be written in two forms, at the server end (back end)
or at the client end (server end). The main difference between
server-side scripting and client-side scripting is that the server side
scripting involves server for its processing. On the other hand, client-
side scripting requires browsers to run the scripts on the client
machine but does not interact with the server while processing the
client-side scripts. Figure 1.1 Difference between Client-side scripting
and server side scripting language.
The popular server-side scripting language.
The most popular server-side scripting languages and frameworks include PHP, ASP.NET, Node.js, Java, Ruby, Perl and Python.
These scripts run on a web server and respond to client requests via HTTP to deliver dynamic and customised content to the user.
Server-side scripting is required to access or store persistent data like user profile information. Whether that involves pulling data from
a file server, database or mail server, it can all be done with a server-side scripting language like PHP. In this lecture we will focus on
PHP and its framework.
What is PHP?
PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used <!DOCTYPE html>
<html>
open source general-purpose scripting language that is especially suited for web     <head>
development and can be embedded into HTML. PHP is specifically designed to         <title>Example</title>
    </head>
fill the gap between static HTML pages fully dynamic pages, such as those     <body>
generated through CGI code.         <?php
            echo "Hi, I'm a PHP script!";
Instead of lots of commands to output HTML (as seen in C or Perl), PHP pages         ?>
contain HTML with embedded code that does "something" (in this case, output     </body>
"Hi, I'm a PHP script!"). The PHP code is enclosed in special start and end </html>

processing instructions <?php and ?> that allow you to jump into and out of "PHP
mode." Figure 1.2 Sample PHP Script

The best things in using PHP are that it is extremely simple for a newcomer, but
offers many advanced features for a professional programmer.
Brief History of PHP

2|Web System and Technologies 2 Lecture Note


Lesson 1|Prepared by: URIEL M. MELENDRES

Through the years, PHP is the premium choice of developers for developing web applications. Thanks to Rasmus Lerdorf, who back in
1994, conceived the idea of PHP. Working through it, he later made its first ever version public in 1995 known as PHP/FI. At that time,
it

was just a simple PERL/CGI script toolset written in C language. The language evolved quickly after the release of PHP3 in 1998,
which included several advanced features – most importantly – the introduction of Zend engine. Today, PHP has found its usage in
many leading organizations for handling their online portfolio. These big guns include Facebook, Wikipedia, Yahoo, WordPress and
others, while the numbers are still growing.
3|Web System and Technologies 2 Lecture Note
Lesson 1|Prepared by: URIEL M. MELENDRES

What are the advantages of using PHP?


PHP has a lot of advantages and some are described above. It has disadvantages as well but it is still better than other programming
languages. It is being widely used the programming language and many people are using this programming language for creating the
different types of web-based application. It is used because of its features and open source. It does not cost and able to develop the
customized application integrated with other programming languages as well.
Following are the top 10 advantages of PHP which are as follows:
1. Open Source
PHP is open-source and free of cost, which helps developers to install it quickly and readily available for use. There are a lot of PHP
frameworks and developer can choose any of the frameworks to work. All the features and tools will be provided to the developer for
that framework easily. As it is open-source, it makes the system ready with PHP in quick time and makes the web development faster
with the help of providing the tools and other features easily.
2. Platform Independent
PHP is mainly supported by all the operating systems like Windows, UNIX, Linux, etc. The PHP based developed web applications can
be easily run on any platform. It can be integrated with other programming language and database easily and there is no requirement
of re-development. It helps in saving a lot of effort and cost.
3. Simple and Easy
This advantage of PHP is simple and easy to learn and code. It is mainly organized code and clean, which helps the new developers
also. The command functions of PHP can easily learn and understood. The one who knows any programming language can easily
work on PHP. It is simple to learn, as its learning curve is not large. The syntax is simple and flexible to use.
4. Database
PHP is easily connected with the database and make the connection securely with databases. It has a built-in module that is used to
connect to the database easily. There are many web applications, which require strong programming language with a good database
management system. PHP and its database connection solve the purpose for development of web applications. It reduces the time to
connect to a database management system as well. Multiple databases can be integrated with PHP.
5. Fast
PHP is known as the fastest Programming language as compared to another. PHP applications can be easily loaded over the slow
Internet and data speed. Other applications take a lot of time to connect the database and fetch the data after executing certain queries
to the database. PHP does not face this problem and it loads the website very easily and fast. The fast speed of PHP provides the
developer with an edge to develop the web applications in PHP programming language.
6. Maintenance
PHP framework is mainly used to make the web application development easier and maintain the code automatically. The model view
controller architecture in PHP framework helps the code to be easily maintained and used. The MVC architecture helps the separation
of a file for
Figure 1.3different modulelook
The brief separately.
on PHP versions history, as how it emerged as one of the world’s most used
server-side
7. Support scripting language through the years.
This advantage of PHP has great online support and community, which helps the new developers to help in writing the code and
developing the web applications. The documentation provided at the official site helps in using the different features of PHP and its

4|Web System and Technologies 2 Lecture Note


Lesson 1|Prepared by: URIEL M. MELENDRES

framework. The latest updates are released timely by the PHP to make it better for the developer to develop the web-based
applications.

8. Testing
PHP based web applications can be easily tested. PHP unit uses to perform the unit testing quickly and easily. It also helps the
programmers to write test cases and perform the testing smoothly. For PHP based web applications, the developers do not need to
write the additional code. PHP frameworks help in automating the different tasks.
9. Security
PHP frameworks built-in feature and tools make it easier to protect the web applications from the outer attacks and security threats.
The security threats can be like SQL injection, data tampering, and forgery etc. To protect from these security threats, developers used
PHP frameworks for developing web applications.
10. Stable
PHP is also stable as compared to other programming languages. It has been in existence for a long time. The developers have
worked on PHP to make it easy for the programmers to work on developing the PHP web-based applications. They have fixed the
issues and bugs over the period of time for the different version of PHP and make it very stable.
What are the applications of PHP?
There are wide applications of PHP in several digital platforms. Now we are going to provide you some of the important applications of
PHP programming language in different fields with their brief information.
1. Web Pages and Web-Based Applications:
Any web page or web application developed in the current ecosystem needs to offer a high degree of customization, provide highly
interactive user interface, be capable of performing online transactions and integrate with database systems. Through its three-tiered
architecture which works on browser, server and database system in a linear manner, PHP offers a reliable solution to achieve these
features. As a consequence, PHP is used by over 82% of websites for server side programming; over 244 million websites are built
using PHP. Further, web-based enterprise applications and a multitude of Facebook apps are also scripted in PHP.
2. Web Content Management Systems:
PHP offers support to numerous databases including MySQL, Oracle and MS Access and is capable of interacting with other services
using protocols such as IMAP, LDAP, POP3, NNTP, SNMP, HTTP and COM . As a result, PHP has been used for creating popular
web Content Management Systems (CMS), including WordPress and its plugins, user-facing portion of Facebook, Joomla, Drupal,
Moodle, Silverstripe, MediaWiki, Digg and others.
3. eCommerce Applications:
From small businesses to large enterprises, selling to online shoppers is now an indispensable requirement. Through use of
frameworks like CodeIgniter and CakePHP, PHP allows creation of eCommerce applications in a swift and simple manner. Many of the
highly used eCommerce platforms, such as OpenCart, Magento, PrestaShop, Zen Cart, AgoraCart and Ubercart, have all been created
on PHP.
4. GUI-Based Applications:
While PHP is largely used as a scripting language for web-based applications, it is also possible to employ it for creating desktop
graphical user interface (GUI) based applications. Tools like PHP-GTK 2, DevelStudio and ZZEE PHP GUI, allow scripting in PHP,
compiling it into .exe capable of running standalone.
5. Create Flash:
5|Web System and Technologies 2 Lecture Note
Lesson 1|Prepared by: URIEL M. MELENDRES

An open source library, such as Ming, helps to create .SWF format movies which include most of the features of Flash – gradients,
bitmaps (pngs and jpeg), morphs, shapes, text, button, actions and animations. Further, Flash elements like login-form and email form
can be easily created and incorporated into dynamic web pages using PHP.
6. Image Processing and Graphic Design:
Apart from managing text content, PHP can also be used to manipulate images. Integration of various image processing libraries, such
as GD library, Imagine and ImageMagick, in PHP applications allows rotating, cropping, resizing, creating thumbnail pictures, adding
watermarks and generating output images in multiple formats including jpeg, gif, wbmp, xpm and png. This feature is an essential
requirement for building robust websites and web applications.
7. Data Representation:
Through use of tools like Image_Graph, PHP can be used to create a variety of graphs, charts, scatter-dot plots and other means of
graphical representations. This feature finds application across client-side desktop applications, eCommerce websites and other
applications where data needs to be presented in a concise and graphical manner.
8. Creating PDF Files:
Further, by use of a library called PDFLib, PHP can be used to generate PDF files. This can facilitate the creation of an online invoicing
system where an HTML-driven invoice is created in PDF format.
1.2 Introducing XAMPP and WAMPP
What you need to run PHP?
To run PHP code, you need the following three software on your local machine:
1. Web Server. A web server is a computer that runs websites. It's a computer program that distributes web pages as they are
requisitioned. The main job of a web server is to display the website content. The most commonly used web server is Apache,
an open-source and free web server software that powers around 40% of websites around the world. The official name is
Apache HTTP Server, and it’s maintained and developed by the Apache Software Foundation.
2. PHP (Interpreter). PHP is an interpreted language. This means that you will write code statements (lines of code) and when a
page is requested, the PHP interpreter will load your PHP code, parse it and then execute it.
3. Database Software (optional). Database software is designed to create databases and to store, manage, change, search, and
extract the information contained within them. A comprehensive database software program is sometimes called a database
management system. MySQL is the most popular database system used with PHP.
You can separately install Web Server, PHP Interpreter, and databases, but to make work easier, developers have made all in one
setup package that will automatically install and set up PHP environment on your Windows, Linux or MAC machines. There following
are the four common web server solution package used:

 WAMP (Windows, Apache, MySQL, PHP)


 LAMP (Linux, Apache, MySQL, PHP)
 MAMP (MAC, Apache, MySQL, PHP)
 XAMPP (Windows/Linux/MAC, Apache, MySQL, PHP)
In this lecture we will discuss how to setup and install WAMP since most of us are using Window OS and XAMPP because it is cross-
platform.
WAMP Server Installation

6|Web System and Technologies 2 Lecture Note


Lesson 1|Prepared by: URIEL M. MELENDRES

WampServer is a Windows web development


environment. It allows you to create web applications
with Apache2, PHP and a MySQL database.
Alongside, PhpMyAdmin allows you to manage easily
your databases.
Here are the simple steps of to install the WAMP
server.

1. Download the App. If you don’t have yet


installer of WAMP, you can download it to
their official website
https://www.wampserver.com/en/ .
But before downloading, it is important to
know what kind of processor architecture
your machine has. If it is 64bit then choose Figure 1.4 Official Website where you can download the latest
the installer for 64bits, else choose 32bits if version of WAMP.
your machine is 32bits.

2. Initiate WAMP Server Install Process. Soon


after you click on the downloaded file, you
will be asked to choose your preferred
language and click the “Ok” button. As I’m
choosing English as shown in Figure 1.5.

Figure 1.5 Official Website where you can download the latest
version of WAMP.

On Figure 1.6, you will see is about the license


agreement. Click on the “I accept the agreement”
radio button and then the “Next” button to continue
with the installation shown on the following figure.

7|Web System and Technologies 2 Lecture Note

Figure 1.6 License Agreement


Lesson 1|Prepared by: URIEL M. MELENDRES

Figure 1.7 will inform you about the required


components that have to be present in your computer
system for the proper functioning of the WAMP
Server. The main purpose of this step is to check for the
suitable version of Microsoft VC++ re-distributable
package. Click on the ‘Next’ to continue.

Figure 1.7 Information

3. Select Location/Destination to Install WAMP


Here, you need to select the location to install the
WAMP on your computer. However, you can
accept the default location and move ahead. To
continue with the installation hit the ‘Next’ button.

Figure 1.8 Installation Location


8|Web System and Technologies 2 Lecture Note
Lesson 1|Prepared by: URIEL M. MELENDRES

4. Select Start Menu Folder to Install WAMP


Now, you need to select the folder where you wish to create the program’s shortcut. You can select any folder of your choice
or you can continue with the default option. You can easily access this folder from the Windows start button. Choose the
folder and click ‘Next’ to continue.
Figure 1.8 Select Start menu Folder

5. Ready to Install WAMP


Finally, you would see a ready to install wizard with a
ready setup to begin the installation. Just hit the ‘Install’
button to begin the installation procedure.

Now, just be patient as the WAMP Server is extracting


files to your selected location. Let the process complete.
Once the status bar is turned fully green, an information
screen will appear like Figure 1.10. Click ‘Next’ to
continue.

Figure 1.9 Select Start menu Folder

9|Web System and Technologies 2 Lecture Note


Figure 1.10 Installation Progress Bar Figure 1.11 Additional information how WAMP
Lesson 1|Prepared by: URIEL M. MELENDRES

6. WAMP Installation Complete


The installation is almost done now simply click ‘Finish’ to exit the setup. That’s all. You are ready with the WAMP server now.

Figure 1.12 Installation Finished

How to access WAMP?


Here are some easy steps to access your install WAMP server.

1. Click the WAMP icon to start WAMP.


You can find the WAMP icon in
Windows Start menu or desktop. You
will see a few Command Prompt
windows appear and then disappear.
When WAMP is running, you can find
the WAMP logo icon in the Windows
Taskbar in the lower-right corner. If
the WAMP icon is green, all services
are running. If the WAMP icon is
yellow, some services are running. If
the WAMP icon is red, no services
are running.

Figure 1.13 WAMP icon on Desktop

2. Click the WAMP icon in the taskbar.


This opens the WAMP menu, then
www directory to open your local site
folder. This is the folder labeled
"www" in the WAMP installation
folder. Save all your local website
builds in this folder. You can create a
new subfolder for each website build
you want to make and save all your
HTML, CSS, PHP, and other website
files in that folder (Figure 1.14).

Figure 1.14 WAMP icon


10|Web System and Technologies 2 Lecture Note
Lesson 1|Prepared by: URIEL M. MELENDRES

3. Login to phpMyAdmin. You can use


phpMyAdmin to create new
databases and manage them. Use
the following steps to log in to
phpMyAdmin: Click the WAMP icon
in the taskbar. Click phpMyAdmin.
Use the drop-down menu next to
"Server Choice" to select MariaDB or
MySQL. Enter "root" as the default
username. Leave the password field
blank. Click Go.

Figure 1.15 Accessing phpMyAdmin Page

XAMPP Server Installation


XAMPP is an easy to install Apache
distribution containing MariaDB, PHP, and Perl available in multiple operating system like Windows, Linux and OS X (Mac). In this
lecture we will only discuss the installation of XAMPP in Windows, but at the last part of this, there are YouTube link for Linux and OS X
installation.
Here are the easy steps of installation.

1. Download the Installer. If you don’t have yet the latest


installer of XAMPP, you can download it in
https://www.apachefriends.org/download.html. Click XAMPP
for Windows. It's a grey button near the bottom of the page.

Figure 1.16 XAMPP Official Website

2. Double-click the downloaded file. This file should be


named something like xampp-win32-7.2.4-0-VC15-
installer, and you'll find it in the default downloads location
(e.g., the "Downloads" folder or the desktop).

11|Web System and Technologies 2 Lecture Note


Lesson 1|Prepared by: URIEL M. MELENDRES

Figure 1.17 XAMPP Installer

3. Click Yes when prompted. This will open the XAMPP


setup window. You may have to click OK on a warning if
you have User Account Control (UAC) activated on your
computer. The click Next.

Figure 1.18 XAMPP Initial Installation Window

4. Select aspects of XAMPP to install. Review the list of


XAMPP attributes on the left side of the window; if you
see an attribute that you don't want to install as part of
XAMPP, uncheck its box. By default, all attributes are
included in your XAMPP installation.

Figure 1.19 XAMPP Initial Installation Window

How to configure your XAMPP?


Here are the few steps to configure your XAMPP server.
1. Double-click on the newly created XAMPP icon. It has an orange icon that resembles an "X". This will display the XAMPP
Control Panel.

12|Web System and Technologies 2 Lecture Note


Lesson 1|Prepared by: URIEL M. MELENDRES

Figure 1.20 Locating XAMPP Control Panel

2. Click Start buttons

Figure 1.21 Starting Apache and MySQL


3. Click Admin next to Apache. If
everything is working properly, you should see the XAMPP Dashboard. You can click one of the icons at the bottom of the
screen to see a list of additional modules you can install and use with XAMPP. These include WordPress, Drupal, Joomla,
Mautic, OpenCart, OwnCloud, phpList, phpBB, and more. Alternatively, you can go to http://localhost/ in a web browser.

13|Web System and Technologies 2 Lecture Note


Lesson 1|Prepared by: URIEL M. MELENDRES

Figure 1.22 Apache Admin

4. Click Admin next to "MySQL". This


opens the phpMyAdmin dashboard. Here you can configure your PHP databases.

Figure 1.23 Opening phpMyAdmin dashboard

If in case your Operating System is not Windows


I provided some Youtube link below.
https://www.youtube.com/watch?v=_hmNWQtl1bo
https://www.youtube.com/watch?v=EK_AUTzV7OI

1.3 Working with Basic PHP file


How to create PHP file?

14|Web System and Technologies 2 Lecture Note


Lesson 1|Prepared by: URIEL M. MELENDRES

It is easy to create PHP file, it is just the same way you create HTML file. If you are using Notepad++, just click File>Save As and
choose PHP Hypertext Preprocessor file like what shown in the Figure 1.24. It is suggested that before start writing PHP script, you
should save it to identify what kind of codes you are writing. The default file extension for PHP files is ".php". A PHP file normally
contains HTML tags, and some PHP scripting code.

Figure 1.24 Saving PHP file Creating


PHP code
blocks
PHP is an embedded language because code is embedded within a Web page (HTML or XHTML document) just like JavaScript. You
write PHP scripts within code declaration blocks, which are separate sections on a Web page that are interpreted by the scripting
engine. You can include as many code declaration blocks as you want within a document. There are four types of code declaration
blocks that you can use to write PHP:

 Standard PHP script delimiters


 The <script> element
 Short PHP script delimiters
 ASP-style script delimiters
As you can see most of the code declaration blocks has the word ‘delimiter’. A delimiter is a character or sequence of characters used
to mark the beginning and end of a code segment.
What is the standard PHP script delimiters?
The standard method of writing PHP code declaration blocks is to use the <? <!DOCTYPE html>
php as opening and ?> for closing script delimiters. When the scripting engine <html>
encounters the <?php and ?> script delimiters, it process any code between the
<body>
delimiters as PHP. The individual lines of codes that make up a PHP script are
<h1>My first PHP page</h1>

15|Web System and Technologies 2 Lecture Note <?php


echo "Hello World!";
?>
Lesson 1|Prepared by: URIEL M. MELENDRES

called statements. Figure 1.25 shows an script that contains single statement that writes the text “Hello World!” to a web browsers
windows using an echo statement.
Even though PHP Group officially recommends to use standard PHP script delimiters to write PHP, some Web developers prefer the
other types of codes declaration blocks, so you must be able to recognize the other delimiters when you them.
What is the syntax of the other delimiters?
Figure 1.25 Using ‘echo’ statement
The <script> element
When the script element is used with PHP, you must assign a value of “php” to the
<script language="php">
language attribute of the <script> like what shown in Figure 1.26. Like the standard
echo "Hello World!"; PHP script delimiters, the <script> element is always available on any Web server
</script> that support PHP. Unfortunately, the <script element’s language attribute
deprecated in XHTML, as a result you cannot validate documents that include PHP
Figure 1.26 Sample code using <script> <script> elements.
element
Short PHP Script Delimiters
A simplified method of writing PHP code declaration blocks is to use the short
<?
script like what shown in Figure 1.27. Although it is simple and short, the major
echo "Hello World!"; drawback of this delimiter is it is not available in all webserver unlike the standard
?> and <script>. That’s why the PHP Group discourages the use of short delimiters,
Figure 1.27 Sample Short PHP script especially when it redistributed and used by others.
ASP-Style Script Delimiters
The ASP-style delimiters is similar to short PHP, the only difference is the
<% question mark was replaced by percent symbol like what shown in Figure 1.28.
echo "Hello World!"; ASP-style script can also ne enabled or disabled in the php.ini configuration file,
%> so you should not use them unless you are sure they are enabled on any Web
Figure 1.28 Sample ASP-style script servers on which PHP script will run.

Is PHP case sensitive?


In PHP, variable names are case-sensitive but function names are not case sensitive. If you defined variable in lowercase, then you
need to use it in lowercase everywhere in the program. If we define a variable $name = "James"; then we must need to use $name.
$NAME will not work. If you defined function name in lowercase, but calling them in uppercase it will work. For example, If we define
function sum() {} then calling SUM() will also work.
Function names are not case-sensitive, though it is good to call functions in the same case as they appear in their declaration for
consistency.
D. Learning Activity
Activity No. 1
Direction: Make your own tutorial video of WAMP or XAMPP installation. You will be graded based on the rubrics provided.

E. Assessment

Direction: Encircle the letter of the correct answer.

1. Who is the creator of PHP?


a. Andy Gutsman c. Zeev Suraski
b. Rasmus Lerdorf d. Rob Allen

16|Web System and Technologies 2 Lecture Note


Lesson 1|Prepared by: URIEL M. MELENDRES

2. What is the correct abbreviation for PHP?


a. Programming Hypertext Processor c. Perl Hypertext Preprocessor
b. Page Hypertext Programming d. PHP Hypertext Preprocessor
3. When PHP 7.0 released?
a. 2015 c. 2017
b. 2016 d. 2018
4. It requires browsers to run the scripts on the client machine but does not interact with the server while processing the client-
side scripts.
a. Back end c. Client-Side Scripting Language
b. Server Side Scripting Language d. Hypertext Mark-up Language
5. Which of the following is NOT an example of server-side scripting language?
a. PHP c. JavaScript
b. ASP.net d. Perl
6. Which of the following is not included in the top 10 of PHP advantages?
a. Simple and Easy c. Fast
b. Security d. Case Sensitive
7. Which of the following is NOT an application of PHP?
a. eCommerce c. Desktop Application
b. Data representation d. Game Development
8. Which of the following server is intended only for OS X?
a. WAMP c. LAMP
b. XAMPP d. MAMP
9. Which of the following is not really needed when running PHP?
a. Database c. Interpreter
b. Web Server d. Web Browser
10. Which of the following delimiters is recommended by PHP group to use?
a. Standard PHP script delimiters c. Short PHP script delimiters
b. The <script> element d. ASP-style script delimiters

REFERENCES
https://techdifferences.com/difference-between-server-side-scripting-and-client-side-scripting.html
https://www.fasthosts.co.uk/blog/client-side-vs-server-side-scripting/
https://www.php.net/manual/en/intro-whatis.php
https://www.educba.com/advantages-of-php/

17|Web System and Technologies 2 Lecture Note


Lesson 1|Prepared by: URIEL M. MELENDRES

https://www.cloudways.com/blog/php-version-history/
https://www.invensis.net/blog/applications-php-programming-language/
https://www.w3trainingschool.com/applications-php-programming-language
https://economictimes.indiatimes.com/definition/web-server
https://www.w3schools.in/php/install/
https://www.hostinger.ph/tutorials/what-is-apache
https://stillat.com/blog/2014/04/02/how-does-php-work-with-the-web-server-and-browser
https://www.quickbase.com/articles/database-software-basics
https://www.w3schools.com/php/php_mysql_intro.asp
https://blog.templatetoaster.com/how-to-install-wamp/
https://www.wikihow.com/Install-WAMP
https://www.w3schools.com/php/php_syntax.asp
https://www.apachefriends.org/download.html
https://www.wikihow.com/Install-XAMPP-for-Windows
https://www.wikihow.com/Set-up-a-Personal-Web-Server-with-XAMPP
https://tutorialsclass.com/faq/is-php-a-case-sensitive-language/
Gosselin, D., Kokoska, D., & Easterbrooks, R., 2011, “PHP Programming with MySQL”. Cengage Learning

Developing Accomplished Distinguished


1- 5 6 - 10 11 - 15
Content & Organization Portions may be poorly Fairly well documented and Program shows a continuous
Is your project organized and documented and/or organized. Format is easy to
progression of ideas and tells
documented? organized. Hard to follow follow. Good explanation shows
a complete, easily followed
the progressions of the story. good effort. story. Well documented and
Explanation shows some organized. Excellent, well
effort. thought out explanation shows
superior effort.
Usefulness – Project demonstrated Project is focused and Project is focused and very
Does your video stay development of computer informative; promotes the use of informative; promotes the use
focused on an informative technology; has problems computer technology to create of computer technology to
topic? Does it promote the staying focused on topic. the video to deliver information. create the video and makes
use of technology to inform others want to use the same
the audience about the type of format in delivering
topic? information to an audience.
Creativity & Elements of Minimal use of design Good use of graphics and/or
Excellent sense of design.
Design – Is your video elements. No transitions. other design elements. Some
Effective camera techniques
interesting? Did your choice Sound is lacking or transitions are inappropriately
used for the video and
of elements such as film inappropriate or scratchy. placed. Sound quality is OK.
pictures. Video and pictures
clips, pictures, backgrounds, Some pictures or video clips Video clips or pictures are clear
are I focus and of good
and transitions enhance the may be out of focus or and in focus. quality. Smooth transitions
project? “shaky”. are appropriate and aid in
delivery of the presentation.
Oral Presentations Skills – Some difficulty Fairly fluid delivery. Well-rehearsed. Voice, eye
Did you respond to the communicating ideas. Poor Communicates ideas with contact and pacing hold
questions by the students voice projections; some eye proper voice projection; perhaps interest and attentions of
18|Web System and Technologies 2 Lecture Note
Lesson 1|Prepared by: URIEL M. MELENDRES

and instructor with ease? contact; no introduction; one mispronounced work; made audience; introduced self and
mispronounced a few words; eye contact; introduced self and project. Responded easily to
long pauses; somewhat project. Respond to questions. questions.
confused.
Source: https://www.dit.ie/media/teachertraining/case0023-digitalmultimedia/Evaluation%20Rubric%20for%20Video
%20Production.docx

19|Web System and Technologies 2 Lecture Note

You might also like