Hi all, i am adding the ability to attach images to posts on my forum but i'm getting the error:
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 129 bytes) in /home/virtual/site13/fst/var/www/html/ForumNewReply.php on line 88
All i'm doing is passing the attached images filenames to ForumNewReply.php and displaying them.
This is the code where the error is happening:
$_SESSION['currentfiles'] = $_SESSION['currentfiles']."c~c~c".$iname;
$exploded = explode("c~c~c", $_SESSION['currentfiles']);
$inarray = count($exploded)-1;
for ($i=0; $i=$exploded[$inarray]; $i+=1) {
$attachedfiles .= "<li>".$exploded[$i]."</li>";
}
Thanks, BIOSTALL