CSCP 369 Web Applications: Christian Service University College, Kumasi

You might also like

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 20

CHRISTIAN SERVICE UNIVERSITY COLLEGE, 1

KUMASI

CSCP 369 WEB APPLICATIONS

BY

EMMANUEL GHARTEY EWOOL


MPHIL INFORMATION TECHNOLOGY

2020/21 ACADEMIC YEAR, SEM 1


COURSE CONTENT
Course Content
CSCP 369 WEB APPLICATIONS (3 Credits)
Introduction to PHP
Handling CSS & HTML form with PHP
Decisions and loops
Functions
Strings
Arrays
Working with file and Directories
State management
String matching with regular expression
Introduction to OOPS
Exception Handling
Database Connectivity with MySQL
READING LIST
• David, S. and Adam, T. (2014). PHP Cookbook, Third Edition.
Boston,O’Reilly Media, Inc.
• Chad, R. (2016). PHP Development Tool Essentials. Apres. ISBN-13
(pbk): 978-1- 4842-0684-3. Boston, MA: Elsevier Focal Press.
MODE OF ASSESSMENT
• Continuous Assessment: - 30%
• Attendance - 5%
• Quizzes and assignments - 10%
• Mid-Semester Examinations - 15%
• End of semester examinations - 70%

Total - 100%
LESSON OVERVIEW
• Introduction to web application
• Introduction to PHP
• Basic syntax and structure
INTRODUCTION
Web Application:
• An application that can run in the browser.

• Usually has a front end interface for user interaction and a


back end database.

• Backend database can hold almost any collection of


information you may want to search and update, such as a
user list, a product catalog, recent headlines etc.
INTRODUCTION (contd)
• Server & Client:
Server in web application is the remote computer (hardware) and
resources (software) that is responsible for executing web requests &
sending pages to the client while the client refers to the web browser
running on the user’s local machine.
INTRODUCTION (contd)
Script & Program
• Scripts run in response to an event such as when a page is requested
while programs run even when it is not responding to events.
• Scripts in their basic form perform instructions from top to bottom
while programs jump around instructions.
• Scripts have gotten more complex making them behave like programs.
WHAT IS PHP?
• PHP is a popular general-purpose scripting language that is
especially suitable for web development.
• A script runs in response to an event.
• It is a server side scripting language that returns HTML.
• For creating dynamic pages.
WHAT IS PHP?
• Has a large developer community support.

• Other server side languages aside PHP include Active Server


Pages(ASP), JavaServer Pages (JSP), Python, Perl, Ruby etc.

• Client side languages include JavaScript, HTML (markup) and CSS


(designing), VBScript etc, .
WHAT IS PHP?
• PHP initially stood for “Personal Home Page.”
• Later changed to “PHP: Hypertext Preprocessor”. This is what’s called
a recursive acronym (a name that contains the name).
• PHP is an interpreted language. This means it does not need to be
compiled.
HOW DOES PHP WORK?
1. User requests a webpage through the web browser.

2. Desired file is located on the web server.

3. PHP parser executes the PHP related code and generates HTML.

4. Web server returns HTML to the user.


APPLICATIONS OF PHP
Applications of PHP include the following:
• User login System: Application for authentication allowing users to
register and set up their own user IDs and passwords and log in with them.

• Point-of-sale Application: Allows shop owners to manage daily


transactions of items purchased, accept credit card payments, track sales
and inventory etc.

• Record Management System: Keeping records and generating reports


from records. Patient records, student records, employee records etc.
APPLICATIONS OF PHP (contd)
• Content management system: Allows the creation, editing,
management and publishing of content for the web. Eg. WordPress,
Drupal, Joomla etc.

• Web forum: This application functions as a public bulletin board. Users


can read the posted messages and post messages of their own or
responses to current messages.

• Online catalog: Displays product information stored in a MySQL


database on a Web site where customers can view it.
APPLICATIONS OF PHP (contd)
• Shopping cart: This application allows customers to purchase the
products that they find in an online catalog.

• Mailing list management: This application allows users to subscribe


to one or more mailing lists. An authorized administrator can use the
application to create new mailing lists.

• Social Media App: For connecting with others and sharing various
forms if digital media such as images, videos etc
TOOLS FOR DEVELOPMENT
• Text Editor: Varies depending on needs but ranges from a simple text editors
such as Notepad++, TextMate, Sublime Text etc. to fully Integrated Development
Environments (IDEs) such as Adobe Dreamweaver, Eclipse IDE etc.

• Web Server that supports PHP such as Apache Server:


Bundled Packages containing Apache, MySQL and PHP
- WAMP Server/Stack (Windows Platform), (www.wampserver.com/en/)
- LAMP Server/Stack (Linux Platform)
- MAMP Server/Stack (Mac Platform) (www.mamp.info/en/)
- XAMPP Server/Stack (Cross Platform), (www.apachefriends.org)
TOOLS FOR DEVELOPMENT (contd)
• Database:
- MySQL (phpMyAdmin, a free GUI tool developed in php for
convenient MySQL administration)

• Web Browser:
- Mozilla Firefox, Google Chrome, Internet Explorer etc.
SYNTAX
• <?php phpinfo(); ?>

<html>
<head>
<title>Hello </title>
</head>
<body>
<?php echo “Hello World!”; ?>
</body>
</html>
Assignment
• Setup a development environment for PHP and outline the steps you went through to
set it up.
Activities:
1. Download and install Notepad++
2. Download and install XAMPP

Video resource: https://www.youtube.com/watch?v=h6DEDm7C37A

Note: Submit assignment on moodle. To submit, open the assignment, click the 'Add
submission' button, type your answers in the box provided and then 'Save changes'.
Your submission status will now display 'Submitted for grading'.
THANK YOU

CHRISTIAN SERVICE UNIVERSITY COLLEGE,


KUMASI

You might also like