\n"); } else { header("Content-type: text/html; charset=utf-8"); } ?> CS 90.3 Assignment 3

Description

Construct a web page that uses PHP to generate a link to each file in a directory.

Procedure

  1. Set up the assignment.

    Create a directory named Assignment_03 under your My Website directory, and in it create a web page named index.xhtml.

    Create a subdirectory of Assignment_03 named target; populate that subdirectory with an arbitrary number of files. The files may be web pages, images, and/or PDF documents.

  2. Do the assignment

    Code index.xhtml so that it presents the user with a set of clickable links to the files in target. Format and style the page so it is attractive. Changing the contents of target and reloading the page must automatically update the set of links presented to the user.

Check Your Work And Submit The Assignment

Test your project on various browsers. Because of browser differences, it is time-consuming to get the project to work exactly right on all browser/computers, so the only requirement is that you provide a working version for Firefox running on Windows. (I will be checking your project using Firefox on a Macintosh, but that shouldn’t make a difference.) But check your code on the other browsers available in the lab: Internet Explorer, Opera, and Safari. Your code should be functional on all platforms, just not necessarily perfect.

Perform a link check on your site. If necessary, go to the Manage Sites panel and be sure you have selected the “case-sensitive link checking” option. Then right-click on your Assignment_03 directory and select the Check Links->Selected Files menu item from the context menu. Fix any errors you find there. (There should be one broken link that you will need to fix.)

If necessary, copy your site from your development system to the lab as described above, and do a final check of your project using the ~<accountname> form of URL. Then send email to me telling me the project is ready for me to grade. I will copy the project from your account in the lab to babbage for testing.

The Subject line of your email must say, CS-90.3 Assignment 3, just like that, in order to get through my spam filters. Within a day, you should receive an “OK, I’ll check it out!” message from me acknowledging that I received your email.