Hi guys,
wondering if someone can help with this? im rubbish with PHP but understand I need to use it, but not sure if what I want to do is possible?
ok, heres the situation.
I have an images folder.
I want to display the images in the folder with php, scale them to a smaller size (some are pretty big), display the filename and the dimensions.
i found this script which seemed perfect:
[php]<?PHP
// filetypes to display
$imagetypes = array(“image/jpeg”, “image/gif”, “image/png”,);
?>
\n"; echo "",basename($img['file']),"
\n"; echo "({$img['size'][0]} x {$img['size'][1]} pixels)"; echo "
but cant get it to work, it simply says
getImages: Failed opening directory images/ for reading
finally, I can’t just use a gallery where the php generates thumbnails, as the client is going to update images but uploading new images with the same name, thumbnails don’t update so this doesnt work.
hope that makes sense?!?
any ideas???
many thanks
David