[FX.php List] Odd problem with POST values

Bob Patin bob at patin.com
Thu Aug 16 13:43:59 MDT 2012


On Aug 16, 2012, at 11:46 AM, Andrew Denman <adenman at tmea.org> wrote:

> The 'post_max_size' setting probably won't affect this particular issue. 800 characters is a measly 0.78 KB, much less than the default 8 MB.

That's what I thought, but I wanted to be sure...

>  According to the PHP docs, running into this limit results in the following behavior: "If the size of post data is greater than post_max_size, the $_POST and $_FILES superglobals are empty."

... which would mean that it would still run the page, but write nothing to the database. Unfortunately, the page isn't even finishing loading and getting to the FM query.
> 
> memory_limit could be another culprit, but if it's still set to the default value it shouldn't be a problem for the submission you are describing. No idea how to tell if you've hit this limit, but I suspect it *should* throw a 500 error of some sort. You can use ini_get() to verify the values at runtime are set appropriately.

I'll give that a try...
> 
> Other shots in the dark:
> Is there anything complex going on that could be infinitely looping?

No, it's a very simple page; as I've said, posting 700 characters works fine, posting 800 makes it fail every time, no matter whether the 800 chars are spread among separate input fields or in a single input field.

> Could this be an issue with the particular text being submitted or are you using different text each try?

I tried it with plain text, just the digits 0-9 pasted 10 times for each 100 characters. No formatting, just plain text...

> Does this happen on a basic test page? (one textarea and on submission just echo it back out)

Haven't tried that, but I'll do so...


Bob Patin
Longterm Solutions LLC
bob at longtermsolutions.com
615-333-6858
http://www.longtermsolutions.com
FileMaker 9, 10 & 11 Certified Developer
Member of FileMaker Business Alliance and FileMaker TechNet
--
Twitter: bobpatin
Google+: http://www.longtermsolutions.com/plus
AIM: longterm1954
iChat: bobpatin
--
Expert FileMaker Consulting 
FileMaker Hosting for all versions of FileMaker


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20120816/3248a637/attachment.html


More information about the FX.php_List mailing list