Lodius2000 Posted October 22, 2008 Share Posted October 22, 2008 heres what php gave me Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 4368 bytes) in /editform/index.php on line 224 line 224 reads $src_bg = imagecreatefromjpeg($_FILES['uploadfile']['tmp_name']); and mac os tells me the file is 1.1 megs, 1162147 bytes exactly also php.ini contains the line upload_max_filesize = 20M //set high, just in case what does that error mean in english? thanks Link to comment https://forums.phpfreaks.com/topic/129669-solved-help-me-decipher-a-fatal-error/ Share on other sites More sharing options...
trq Posted October 22, 2008 Share Posted October 22, 2008 It means you've run out of memory. Nothing at all to do with upload_max_filesize. You might want to take a look at the memory_limit directive. Link to comment https://forums.phpfreaks.com/topic/129669-solved-help-me-decipher-a-fatal-error/#findComment-672317 Share on other sites More sharing options...
Lodius2000 Posted October 22, 2008 Author Share Posted October 22, 2008 thorpe, basically what you are saying is the server ran out of ram, or something similar, like on an old mac when you had 32mb of ram and 5 web browser windows open, then you try to open photoshop and the computer tells you it cant do it..... that "out of memory"? Link to comment https://forums.phpfreaks.com/topic/129669-solved-help-me-decipher-a-fatal-error/#findComment-672323 Share on other sites More sharing options...
trq Posted October 22, 2008 Share Posted October 22, 2008 Yup. Thats the one. There is a directive within the php.ini though (memory_limit) which limits php to only be able to use a certain amount of memory. Its actually that limit you have hit. memory_limit helps protect the machine against rogue scripts eating all the memory. Link to comment https://forums.phpfreaks.com/topic/129669-solved-help-me-decipher-a-fatal-error/#findComment-672329 Share on other sites More sharing options...
Lodius2000 Posted October 23, 2008 Author Share Posted October 23, 2008 so i read up on it and quickly set it to -1, to remove all the limiting, but i understand what you are saying about rogue scripts, so is there a realistic limit i could set it to so that I can still upload pictures but dont have to worry about nasties? Link to comment https://forums.phpfreaks.com/topic/129669-solved-help-me-decipher-a-fatal-error/#findComment-672335 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.