Hi
Can anyone help?
i have a code to automatically generate a slideshow from thumbs and originals folders which deos not seem to be working - i get error
Warning: Invalid argument supplied for foreach() in /home/content/33/5055733/html/galeria.php on line 89
the code is below
[php]<?php
$gallery_up_dir = “gallery_uploads”;
$gallery_thumb_dir = “gallery_thumbs”;
$directory = “$gallery_up_dir/*/”;
// or get all image files with a .jpg, .JPG, .png, .PNG extension.
$extensions_array = array(‘jpg’, ‘JPG’, ‘png’, ‘PNG’);
$imageArray = array();
foreach($extensionsArray as $ext){
$images = glob("" . $directory . “*.$ext”);
// fill up the array
foreach($images as $image){
$imageArray[] = "$image";
}
}
//display images
foreach ($imageArray as $img) {
echo '<a href="',$img,'" rel="shadowbox" class="thumbnail"><img src="',
str_replace($gallery_up_dir,$gallery_thumb_dir,$img) ,'" /></a>';
}?>[/php]
thanks in advance
melanie