Page 1 of 1
image size problem
Posted: Sat Jan 03, 2009 10:14 am
by itsmani1
On upload I wanted to find size of the image but when i tried to upload an image of size more than 2MB its give me 0.
Here is code:
Re: image size problem
Posted: Sat Jan 03, 2009 10:16 am
by jaoudestudios
Probably because php is running out of memory.
If you get 0, does the file still upload ok?
In the php.ini file you can increase the upload size and memory usage size
Re: image size problem
Posted: Sat Jan 03, 2009 10:28 am
by itsmani1
Re: image size problem
Posted: Sat Jan 03, 2009 10:30 am
by itsmani1
No does not upload.
Its a shared server, can't access .ini file.
any solution without .ini file?
Regards,
Re: image size problem
Posted: Sat Jan 03, 2009 10:49 am
by jaoudestudios
itsmani1 wrote:No does not upload.
Definitely reaching a limit.
Hmm you can try with php ini_set() but dont think it will over-ride php.ini file.