Closed staabm closed 12 years ago
it reads
$images = new RecursiveDirectoryIterator('/path/to/images'); $images = new RecursiveIteratorIterator($it); $manager->process($images, function(SplFileInfo $file) { // upload this file });
but should read
$it = new RecursiveDirectoryIterator('/path/to/images'); $images = new RecursiveIteratorIterator($it); $manager->process($images, function(SplFileInfo $file) { // upload this file });
notice the name of the first var, $it instead of $images.
it reads
but should read
notice the name of the first var, $it instead of $images.