From the course: Creating Web Media

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Read JPG metadata with PHP

Read JPG metadata with PHP - CSS Tutorial

From the course: Creating Web Media

Read JPG metadata with PHP

- [Chris] Hi, this is Chris Converse, and in this episode we'll be using PHP to extract metadata from images and displaying that content within a page. Now, images can contain quite a bit of information, and accessing that information with PHP can save you a lot of time, especially when you have to display that information on a page. So if you'd like to follow along with me, download the exercise file, and you'll also need access to a web server or an application running PHP. Now, once you've extracted the exercise files, you'll see that I've included a folder named Gallery. The images here already have metadata added to them, however, if you'd like to use your own images containing metadata, you can certainly use those instead. And so to begin, let's open index.php in the text editor. Now inside of the PHP file, up in the head area, we have a link to style.css. In the body area, we have a header element. We have a main element; inside of the main element is an h1 tag and our PHP…

Contents