Question: Create a simple Photo Gallery application in PHP. Use Cases: User uploads new photo to photo album including meta data (Name, Date, Location, Photographer) User

Create a simple Photo Gallery application in PHP.

Use Cases:

  1. User uploads new photo to photo album including meta data (Name, Date, Location, Photographer)
  2. User views all photos currently in photo album as gallery
  3. User chooses sorting method by selecting from choice of meta fields in dropdown
  4. User can choose to upload additional photos from gallery screen (back to upload form)

Grading:

100 points = 15 points per successfully implemented use case + 20 points for UI design + 20 for good coding style

General Requirements for Successful Submission:

  • index.html contains the photo upload form in HTML
  • gallery.php contains the script storing the uploaded file in a folder called uploads and displays all files currently in that folder, allowing for sorting as specified in wireframes associated with this assignment
  • Additional Comments
    1. You may find that including a CSS framework (e.g. Bootstrap or Foundation) will make the creation of this application easier, especially when using existing building blocks like this one: https://foundation.zurb.com/building-blocks/blocks/featured-image-block-grid.html

      The use of any framework(s) is optional, but getting familiar with them will allow you to complete assignments faster.

      Uploaded files are first moved into a temporary directory on the web server. Use move_uploaded_file($_FILES["fileToUpload"]["tmp_name"],"uploads/".$_FILES["fileToUpload"]["name"]); to move the uploaded file to a subdirectory named uploads. Note that you will have to allow PHP scripts to write into this directory.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Creating a simple photo gallery application in PHP involves several steps Heres ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!