Lab 13: File Upload
Student Learning Objectives
- Design and implement using interactive PHP/Web application that uses
- XHTML Forms to upload user's files
- SQLite database to store the names of the uploaded files
- PHP scripting to create a list of hypertext links that reference the uploaded files
Assignment
Extend the work we did in class to create a file upload page that permits users to upload HTML files to a folder on your U:\ drive.
Create another page to allow the user to see a list of the names of the uploaded files, each filename rendered as a hypertext link.
Users should be able to click on the link and view the contents of the uploaded HTML file in the browser.
To Receive Credit
- To help with grading, begin your pages with your account number (e.g. in cs35002_nn [h1]) and your name [h2]
- Print out and staple together two printouts:
- your file upload form as displayed in the browser
- your available files link page as displayed in the browser
- your PHP code will be checked online
- Save your files in folder
u:\htdocs\lab13\ in your cs350 account
Screen Snapshots
none specified, use your own design
Grading Criteria
- Labs will be graded on a scale of 0 to 10:
- 10: Excellent: no problems detected in the code, users may upload files to the server, view a list of uploaded files, and click on a filename to view its contents.
- 9: Very well done: Minor coding or usability problems in the input form or available file list page that do not affect their functionality.
- 8: Well done: either the user input page or the available file page has minor problems that affect its functionality.
- 7: Acceptable: both the user input page and the available file page have minor problems that affect their functionality.
- 6: Problems: Major problems are present in the pages.
- 5, 4, 3: Incomplete: the lab was attempted but over one-third of the requirements still undone.
- 0: Lab not submitted, no work done. You are allowed to drop your lab lowest score.