News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Kevin Schroeder:
Setting max_input_time (with data!)
January 11, 2013 @ 09:20:46

Kevin Schroeder has a new post to his site today wondering about the "max_input_time" setting for PHP and why some recommend it being a large number despite the (usually) fast time PHP has accepting input.

I asked a question on Twitter on why some of the recommend max_input_time settings seem to be ridiculously large. Some of the defaults I've seen have been upwards of 60 seconds. However, after thinking about it I was a little confused as to why a C program (i.e. PHP) would take so long to process string input. The reason I was thinking about this was because I was thinking about ways to protect PHP from denial of service attacks.

So he ran some tests to see just how effective changes in this setting could be and how much time a typical PHP request would need to take in input. Using a Zend Framework 2 HTTP client, he simulated POSTS and tracked the start and end times for a file upload. He includes the timing results in the post based on both this setup and a change to only post regular text-based form data.

0 comments voice your opinion now!
maxinputtime zendframework2 setting seconds benchmark


blog comments powered by Disqus

Similar Posts

MaltBlue.com: Zend\Db\Sql\Select - The Basics (Columns, Limit & Order)

Richard Thomas' Blog: Direction of Zend Framework?

Matthew Weier O'Phinney: ZF2 Modules Quickstart (Screencast)

Michael Bommarito\'s Blog: Day Three - PHP5 vs PHP6 Benchmark

PHPClasses.org: Can .NET make PHP run faster than the official PHP implementation?


Community Events





Don't see your event here?
Let us know!


series unittest community symfony language opinion configure framework tool composer podcast conference voicesoftheelephpant interview version laravel list release introduction api

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework