So I added the code referenced in this thread:
PHP + GD memory error
and I added some additional output parameters to debug the issue. Here is my result on the error:
The image you submitted exceeds the maximum allowed size.
Please resize your image.
memory limit=,
php memory =0,
file memory =25050432
image stats0=2592 (image width)
image stats1=1944 (image height)
image stats2=2 (image type)
image stats bits = 8
image stats channels = 3
constants, pow1, pow2 = 65536, 1048576
I also added this:
ini_set("memory_limit", "48M");
to the top of both pp-inc.php and uploadphoto.php. Neither is taking, obviously. I think it's too late in the script.
I changed the hard-coded line above to 3000 and 3000 to try to get this example to load.