![]() |
need help init_set
hi evryone i have this problem with my upload script help is apreciated * 100
i found the problem its ini_set not working with imagecreatefromjpeg anyone know solution?? Quote:
|
figured out the problem myself...
sorry for spamming the forum seems that imagecreatefromjpeg is memory eater and on truecolor scale for evry pixel it uses 4 bytes so 1 R 1 G 1 B 1 Transparant (something like this anyways) so if my image was to be 2000px x 2000px than i get something like this 2000 x 2000 x 4 = 16.000.000bytes so i changed my initset value to init_set('memory_limit', 200 000 000) and everything works fine :/ so if anyone knows a trick on this i'm more then glad to hear it |
| All times are GMT. The time now is 11:39 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0