<?php $location = 'albums'; $album_name = $_GET['album_name']; $files = glob($location . '/' . $album_name . '/*.{jpg,gif,png}', GLOB_BRACE); $encoded = json_encode($files); echo $encoded; unset($encode
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)