CST8238 – Lab 10 – PHP and XML (Solution)

$ 29.99
Category:

Description

Purpose

• Explore XML using PHP
• 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 hours.

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

Use the slides and examples found on Blackboard. Module 5, Part 3
Lab Supplies

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

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

Summary of Tasks

1. Develop the logic to display your web application
2. Upload your website to the webserver
3. View your webpage using a web browser
4. Submit Assignment Link on Blackboard
5. Submit Source Code of the PHP files on the Blackboard
Task 1

Before getting started with the following tasks, review the ‘Common Look and Feel’ video provided on Blackboard (under: Course Content → Extra Materials). Using the knowledge gained in these materials, implement the following Design Pattern to create a ‘Common Look and Feel’ to be used on every page of your website.

Your web site will include the following PHP scripts:

• Header.php
• Footer.php
• Menu.php
• Books.php

NOTE: Books.php must include the Common look and feel implemented in Header.php, Footer.php and Menu.php.

Header.php

Header.php must contain a script to display a Common Header that will appear on every page. The header must contain a banner (images, css, etc).

Footer.php

Footer.php must contain a script to display a Common Footer that will appear on every page. The footer must contain Student Number, First Name, Last Name, and Email Address

Menu.php

Menu.php must contain a script to display a Common Menu to be show on every page. The menu must contain links to Books.php

Books.php

Create a page that displays all the content from the following XML file.

http://www.rejaul.com/CST8238/Lab10/Books.xml

Use PHP to download the contents of the file and create a table to display each book in the catalog element. Each row in the table should contain all of the Books information.

A full example as to how to do this can be found on Blackboard: XMLCodeExample.zip
Task 2

Upload your website to the Web server. Use an FTP client to connect to your Web server.

Once you connect to the webserver using an FTP client, create a directory called
‘/CST8238/Lab10’. Once your course directory has been created navigate to that new directory. Add your Books.php file to this location. (Using FileZilla simply drag the Books.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.

For more information on using FileZilla please navigate to the following material in Blackboard:
Course Content → Extra Material → FileZilla Guide (Video)
Task 3

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

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

For example, the web address to my page is:

http://profrejaul.com/CST8238/Lab10/Books.php

Where ‘profrejaul.com’ is the domain name of the Web server, ‘ /CST8238/Lab10’ is the name of the directory I created in the Web server using FTP client and ‘Books.php’ is the web page I created for this lab.
Task 4

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 Content → Labs and click on ‘Lab 10 – PHP and XML’ link.

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

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

Under “Assignment Submission”, submit (attach) source code of the following PHP files:
• Header.php
• Footer.php
• Menu.php
• Books.php

Finally, once the Submission section is 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 10 – PHP and XML (Solution)”

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