Bonnes Pratiques Web & Cloud
58.8K views | +3 today
Follow
Bonnes Pratiques Web & Cloud
Administration cloud et développement web
Curated by Mickael Ruau
Your new post is loading...
Your new post is loading...

Popular Tags

Current selected tags: 'PHP', 'images'. Clear
Scooped by Mickael Ruau
Scoop.it!

PHP File Based Image Gallery | Videos | phpacademy

PHP File Based Image Gallery | Videos | phpacademy | Bonnes Pratiques Web & Cloud | Scoop.it

A file based image gallery that pulls specific image types from a directory and displays them in a styled gallery.

No comment yet.
Scooped by Mickael Ruau
Scoop.it!

Working with Image Metadata in PHP

PHP’s exif_read_data() function can read these headers and extract the information stored within them. below is an example code which extract the information embed in an image.

 

 

Mickael Ruau's insight:
 <?php $DIR = “C:/Users/laeeq/Pictures/”; $filelist = glob(“$DIR/*.jpg”); if(sizeof($filelist)>0) { foreach($filelistas$file) { $exif = exif_read_data($file, 0, true); echo“File: $file \n”; foreach($exifas$section => $data) { foreach($dataas$key => $value) { echo“$section -> $key = $value \n”; } } echo“\n”; } } ?>
No comment yet.