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:
Can i not have any suggestions to increase php.ini memory_limit as the page is used very regularly. I've tried increasing it a bit but i dont see why just displaying an array full of filenames should cause an error :-SCode:$_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




Reply With Quote