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.
For some reason a script stops doing anything half way through. If you look at the following code you can see how I'm trying to see what is causing the stop.
Running the above code, the last thing I see is '7' printed to screen. The last $foo->Process doesn't run. I don't get '8' and that final error does nothing.
What would be causing this kind of behaviour?Reply
This question has also been asked over at Stack Overflow. If it gets solved there first, you may want to copy the answer here (or vice versa). The link is stackoverflow.com/questions/7897820/what-would-cause-a-php-script-to-just-stop-without-reasonReply
Running the above code, the last thing I see is '7' printed to screen. The last $foo->Process doesn't run. I don't get '8' and that final error does nothing.
What would be causing this kind of behaviour?
After much more debugging I was able to make the script execute by choosing a smaller image file.
The original image was 324kb in size, 2832 x 4256 and seems to be straight off a Nikon camera.
i tried changing the server memory limits by putting the following at the top of the script:
ini_set ( "memory_limit", "40M");
But this had no positive effect.
What do I need to do so that I can make this work again in the future?
Search for memory in the site, or click here.
You can also check this post.