CST8238 – Lab 5 – Preparation and Introduction to PHP (Solution)

$ 24.99
Category:

Description

Purpose

• Install Eclipse PHP Developer Tools
• Install EasyPHP
• Create your first PHP website ‘Hello World’
• Display your website to your local machine using EasyPHP/WAMP/MAMP Web Server
• Upload your website to a Web server

• This lab must be handed in:
Assessment

• This Lab is worth 2% of your total course mark.
Estimated Time

• This Lab is estimated to take 2 hour.

This is only an estimate of the time required to complete this Lab. I would encourage you to work at your own pace and if at all possible obtain a laptop so that you can work on your assignments from anywhere

The following chapter of Fundamentals of Web Development will be useful in completing this exercise:

• Chapter 8
Lab Supplies

To complete this lab you will require the following lab supplies:

• Textbook: Fundamentals of Web Development
• Eclipse, Notepad (or other text editor, or IDE)
• FileZilla (or other FTP client)
• EasyPHP Web server

Summary of Tasks
1. Install Eclipse (If you did not install it during Lab 1).
2. Install EasyPHP
3. Create your first PHP web site
4. Display your website in your local machine using EasyPHP/WAMP/MAMP Web Server
5. Upload your website to the webserver
6. View your webpage using a web browser
7. Submit the URL for Lab 5 on Blackboard
8. Submit the source code (i.e., PHP file) for Lab 5 on Blackboard
Task 1

Your first task is to prepare yourselves for the coming Labs and Assignments by installing the software needed to be successful in this course.

Eclipse, PHP Development Environment:

1. Navigate to the following web address: http://www.eclipse.org/
2. Download the appropriate Eclipse client (choose the operating system that matches your computer).
Please download Eclipse from the following URL:
http://www.eclipse.org/downloads/packages/eclipse-php-developers/lunasr2

IMPORTANT NOTE:
The Eclipse client does not have a standard installer. To use the software simply unzip the file you downloaded and run the ‘Eclipse.exe’ executable.

EasyPHP:

EasyPHP is the WAMP installation we are going to use to develop our PHP websites
1. Navigate to http://www.easyphp.org/
2. Click the Download link
3. The latest stable release of EasyPHP will be listed first; download the software
4. Install the software on your Computer (reminder that this WAMP installation is only capable of running on Windows)

To setup EasyPHP in your local machine, please navigate to the following material in
Blackboard: Course Content → Extra Material → EasyPHP-Setup

Task 2

Create your first website using Eclipse or Notepad.

Use PHP’s appropriate command to display the following content:

• Display your first and last name where your first name and last name need to be declared as PHP variables.
• Display your student number which needs be declared as a PHP constant.
• Display the text ‘Hello World! I am using PHP!’ by concatenating the two strings ‘Hello World!’ and ‘I am using PHP!’
• Provide Links to Labs 1 through 4 and Assignment 1

Be sure to name this file: index.php
Task 3

Upload the website to your webserver domain.

Once you connect to the webserver using an FTP client, create a directory called ‘/Lab5’ under ‘/public_html/CST8238’ directory. Once your personal directory has been created navigate to that new directory. Add your index.php file to this location. (Using FileZilla simply drag the index.php file into your folder)

We recommend the FTP client FileZilla. The program is provided for free (and open source for those who are interested in such things) by the Mozilla Foundation; the makers of Firefox and Thunderbird.
Task 4

View your website using a web browser. Open a web browser and navigate to the following web address:

http://web-server_domain_name/CST8238/Lab5/<filename>

For example, the web address to my page is:
http://rejaul.com/CST8238/Lab5/index.php

Where ‘rejaul.com’ is the domain name of the Web server, ‘ CST8238/Lab5’ is the name of the directory I created in the Web server under ‘/public_html’ directory using FTP client and ‘index.php’ is the web page I created for this lab.
Task 5

Once you have confirmed that you webpage is available online, you are ready to hand in your lab.

To hand in your lab go to Blackboard and navigate to Course Content → Labs and click on ‘Lab 5 – Preparation and Introduction to PHP’ link.

Under “Assignment Materials”, in the Submission text box write out the following Information:

• Student Number
• First Name
• Last Name
• The URL, or hyperlink, prepared in Task 4

Under “Assignment Submission”, submit (attach) following PHP file:
• index.php

Finally, once the Submission and Comments section are complete, click the ‘Submit’ button to send the lab to your professor.

IMPORTANT NOTE:
If the URL, or hyperlink, does not direct the professor to the lab you will receive a ZERO for the lab assignment.

IMPORTANT NOTE:

Reviews

There are no reviews yet.

Be the first to review “CST8238 – Lab 5 – Preparation and Introduction to PHP (Solution)”

Your email address will not be published. Required fields are marked *