5/5 – (1 vote)
- Create a directory called rollno-lab5-part2 where rollno is your roll number.
- Keep all your scripts, html pages and all relevant files in this directory
- Use following command to create a tar ball :tar -czvvf rollno-lab5-part2.tgz rollno-lab5-part2/(Note that you have to outside this directory to run this command).
- Upload this tarball rollno-lab5-part2.tgz on moodle.
- Do not change cases, and do not deviate from the naming scheme for yourscripts, directory or tar file to be uploaded.
1. PHOTO ALBUMCreate a photo album with following features
Login Form: index.php has the form, login.php has authentication Authenticate using standard credentials:
user:eval pass:eva
album.php: Browsing through the album using next, prev, last, first buttons
Image upload page that allows you to add an image to the album: newupload.php has the form and upload.php does the processing:
Check for image format as jpg in php. Check for image size to be less than 200KB in php
1
- Maximum of 10 images to upload- check in php
- Images to be uploaded to images/ directory
- Errors can be displayed on upload.php itself with a back buttonto enable navigation to the previous page
- deleting imagesWe expect index.php, login.php, upload.php, newupload.php in the directory.
Optional (not for credit): Use sessions to validate login sessions while accessing album.php, newuplod.php and upload.php. Session has to be initialized at login.

![[Solved] CS213 Assignment 5 Part 2-PHP2 part 2 statement](https://assignmentchef.com/wp-content/uploads/2022/08/downloadzip.jpg)

![[Solved] CS213 Assignment 5 Part 1 PHP2](https://assignmentchef.com/wp-content/uploads/2022/08/downloadzip-1200x1200.jpg)
Reviews
There are no reviews yet.