If you are running Solaris or BSD, glob brace does not work
Change this:
$imagesJC = glob($imagesDir . '*.{jpg,jpeg,png,gif}', GLOB_BRACE);
to this:
$imagesJC = glob($imagesDir . '*.{jpg,jpeg,png,gif}',(defined('GLOB_BRACE') ? GLOB_BRACE |
GLOB_NOSORT : GLOB_NOSORT) );
No hay comentarios:
Publicar un comentario