Lab 1
Lab 1
Tutorial 1
Web Basic and Xampp
Part A: Web Basic
1. Give the full term to the below abbreviation:
a. HTML
b. XHTML
c. CSS
d. HTTP
e. HTTPS
f. SSL
g. TLS
2. A uniform resource locator (URL) identifies the location of a website on the internet. Given a
URL as https://www.mmu.edu.my/index.php?req=37, examine each component of the URL by
filling the below table.
https://
www.mmu.edu.my
index.php
req=37
3. What is difference between HTTP and HTTPS protocol? Given two examples when HTTPS
protocol is used.
TWT6223 Web Techniques and Applications
Part B: XAMMP
Xampp is a Windows web development environment. It allows you to create web applications with
Apache, PHP and the MySQL database. It also comes with PHPMyAdmin to easily manage your
databases.
Xampp installs automatically (installer), and its usage is very intuitive. You will be able to tune
your server without even touching the setting files.
Installing
Go to https://www.apachefriends.org/index.html
Choose the Download link for “XAMPP for Windows” if your computer is a Windows
platform.
The installer will be automatically activated as shown below:
Press the “Save File” button and save it into your computer.
Once the installer is downloaded, double-click the installer to install the Xampp.
The Xampp will be installed into your C drive.
Once the installation success, you may click the “XAMPP Control Panel” from the Starts Menu,
a Xampp icon will appear in the bottom right of Notification Area, right-click the Xampp icon
to activate the Apache server by pressing the Start button as bellow:
TWT6223 Web Techniques and Applications
If the red circle beside the Apache is changed to green color after the Start button is pressed.
This means the server is become active now.
You can double-click the Xampp icon directly to display the Xampp Control Panel as shown
below. From here, you can start and stop the Apache server.
Starting
When you install Xampp, a "htdocs" directory is created (generally c:\ xampp\htdocs).
Create a directory inside for your project and put your PHP files in it.
You may open the web browser and type the url (http://localhost or http://127.0.0.1/) into the
address bar of the web browser.
<html>
<body>
<?php
print "Welcome to MMU!";
?>
</body>
</html>