I’m trying to call images all the images from a folder to display on screen in an iframe. I added a back end function for the admin to delete the images from the folder if they choose. After setting this up I went back to see if the images were being deleted and I was met with this error:
Fatal error: Cannot redeclare addPost() (previously declared in /home/s519970/public_html/includes/functions.php:99) in /home/s519970/public_html/includes/functions.php on line 117.
I’ve looked for instances where I might have called my functions.php file again but there doesn’t seem to be any. What’s confusing me is that the addPost() function I’ve been using has never been in my includes/functions.php file but in my admin/includes/functions.php file.
The code calling the files is:
[php]$handle = opendir(dirname(realpath(FILE)).’/admin/img/albumOne/’);
while($file = readdir($handle)){
if($file !== ‘.’ && $file !== ‘…’){
echo ‘’;
}
}[/php]
I’m not really sure what else to post up but if theres any other code of info I can provide let me know.
Any help is greatly appreciated!
After reading this post back in a preview it doesn’t sound like the two are related as addPost() is unrelated to the gallery. I must be missing something in my code, perhaps some advice on what to look for would be better to ask for, rather than a solution. Thanks