Dynamic image gallery in php using glob function of php