class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
If i use the test script for large images (3264 x 2448, 1,5 MB) it opens upload.php (i can see that in the URL-bar), but there is only a title that is displayed nothing else.
You probably run out of memory. If your image is 1.5MB big, you will need about 5 to 8 times this to process the image, plus the memory used by your script. I would recommend increasing the memory limit to at least 32MBReply
If it doesn't work (but your code still works for small images), it means that you have a memory problem.
If when you try to increase the memory, it doesn't work, and your PHPinfo() doesn't show the memory increase, it means that your host doesn't allow you to raise the memory limit. That is common on shared hosting.
If it is the case, you don't have many solutions. You can try to bribe your host into raising the memory limit, or else you will have to upload smaller images.Reply
If i upload smaller files there is no problem.
Can you help me out
Try to raise your local memory to 20M, 32M or more. If you are on shared hosting, you might not be able to do so.
You can add this in your script:
Or in a .htaccess file:
If when you try to increase the memory, it doesn't work, and your PHPinfo() doesn't show the memory increase, it means that your host doesn't allow you to raise the memory limit. That is common on shared hosting.
If it is the case, you don't have many solutions. You can try to bribe your host into raising the memory limit, or else you will have to upload smaller images.