Question: Create php page to display photos. Page should dynamically list photos. Write php code that looks for all photo files in this folder. Print each
Create php page to display photos. Page should dynamically list photos. Write php code that looks for all photo files in this folder. Print each filename with li list item with class of photoitem. Make each item display just name of file using basename function. Make each item be a link to that photo. Display the size of each photo file in kilobytes. You can get the size of a file in bytes using the filesize(filename)functionUse round() to round decimal numbers to whole numbers
Your photo album should look like this My Photo Album sunshine.jpg (121 KB) my cat.gif (58 KB) santa clara.gif (34 KB) iphone6.jpg (79 KB) mission church.jpg (265 KB) When add or delete any photo, the PHP page would reflect the change
Step by Step Solution
There are 3 Steps involved in it
To create a dynamic PHP page that lists all ... View full answer
Get step-by-step solutions from verified subject matter experts
