Does anyone know of a quantity limitation in PHP, or PHPRUNNER regarding the number of fields on a form, or the number of upload files. I have a form with 10 header fields, and then 40 entires each with 3 fields. 130 fields all together.
---- Form -------------------------------
10 fields
Repeating 40 off:
Image file Text Integer
------------------------------------------
The form is to configure a slide show with up to 40 images. I use PHPRUNNER 4.1, and have thumbnails being made for each image.
As far as I can see, all 40 entries are identical. Things are fine until the 26th image entry, then I get an error. This happens if I am just adding the 26th item on its own, its not as if it has to deal with 26X3 entries, just one entry at position 26 or higher:
PHP error happened
Technical information
Error type 2
Error description imagecreatefromstring() [function.imagecreatefromstring]: Empty string or invalid image
URL www.uppergrandfht.org/portal/_slideshow_edit.php?
Error file /home/ce5498/public_html/uppergrandfht.org/portal/include/commonfunctions.php
Error line 1250
SQL query update `_slideshow` set
This shows that the thumbnail creation failed because the upload file does not exist. I took a look at the _edit.php code at this stage and dumped out the _FILES variable, in which we can see the file is missing. Here is the relevant section when it works, and when it doesn't:
Adding image #25 - this works
Array (
[file_f1] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 )
[file_f2] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 )
.....
[file_f25] => Array ( [name] => p25.jpg [type] => image/pjpeg [tmp_name] => /tmp/phpdvV0Hv [error] => 0 [size] => 20724 )
)
Adding image #26 - fail
Array (
[file_f1] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 )
[file_f2] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 )
.....
[file_f25] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 )
[file_f26] => // missing!
)
So it looks like there is a limit somewhere, probably in PHP, that ends up clipping my data after 25 entries. I suspect this because the problem exhibits on the hosting server and not the office test server. But I don't know.
Any ideas?
Chris