Skip to Main Content
PHP for Absolute Beginners
book

PHP for Absolute Beginners

by Thomas Blom Hansen, Jason Lengstorf
August 2014
Beginner content levelBeginner
256 pages
6h 48m
English
Apress
Content preview from PHP for Absolute Beginners

CHAPTER 4

image

Building a Dynamic Image Gallery with Image Upload

You know how to make a simple dynamic web site. You know how to write a form. You know how to access URL variables with $_GET or $_POST. I say it’s time to put your new knowledge to good use. Let’s build a dynamic image gallery with a form to allow users to upload new images to the gallery. In the process, you will learn quite a bit.

  • Set up a dynamic site.
  • Write named functions.
  • Use $_GET and $_POST superglobal arrays.
  • Iterate with a while loop.
  • Use PHP’s native DirectoryIterator class.
  • Write custom object methods.
  • Upload files with PHP’s $_FILES superglobal array.
  • Plan and code a ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

PHP and MySQL® Web Development, Fourth Edition

PHP and MySQL® Web Development, Fourth Edition

Luke Welling, Laura Thomson

Publisher Resources

ISBN: 9781430268147Purchase book