Re: able to upload 28 meg file, yet php.ini limits posts to 10 megs. What is up with that?



On Sat, 31 May 2008 19:12:24 +0200, The Natural Philosopher <a@xxx> wrote:

MikeB wrote:
On May 31, 6:38 am, "C. (http://symcbean.blogspot.com/)"
<colin.mckin...@xxxxxxxxx> wrote:

If you set the limit in the webserver config then it will terminate
the conenction.
I probably should not get involved in a discussion like this, but I
can't help it. If the purpose is to save bandwidth, does the webserver
terminate the connection *after* if has uploaded to the specified
limit?


The webserver doesn't KNOW what php's bandwidth limit is. It takes ALL the POST data of which the uploaded file is part, and gives it to PHP.

Indeed, it can only enforce it's own limitations, not PHP's. And that's where any reasonable limitation should take place, as it can and will drop a connection, instead of just (like PHP) ignoring the data but still allowing it to get in AFAIK.
--
Rik Wasmus
....spamrun finished
.



Relevant Pages

  • Re: Large-scale multi-user mailing list
    ... I'm using a simple PHP multi-user mail distribution module (MIME E- ... service providers offering servers that are well suited for this ... And a few thousand messages an hour is easily achievable by the meanest machine..although upstream bandwidth is an issue. ...
    (comp.lang.php)
  • Re: Large-scale multi-user mailing list
    ... I'm using a simple PHP multi-user mail distribution module (MIME E- ... And a few thousand messages an hour is easily achievable by the meanest machine..although upstream bandwidth is an issue. ... If your ISP doesn't complain, you have 40 emails coming in, and 40 emails going out with large CC headers. ...
    (comp.lang.php)
  • Re: Calculating page bandwidth usage (PHP/Ajax)
    ... I intend to use Ajax for a kiosk application, it's primary usage is to ... retrieve live data from my DB, it's a fairly small amount of data (5 ... know is how to calculate the bandwidth of the data for every ten ... I'm not entirely sure that PHP is really the best solution to your ...
    (comp.lang.php)
  • Re: Calculating page bandwidth usage (PHP/Ajax)
    ... fair amount of bandwidth this month, ... know is how to calculate the bandwidth of the data for every ten ... I'm not entirely sure that PHP is really the best solution to your ... I just want to know how much data each ajax request is - I dont want ...
    (comp.lang.php)
  • Re: Calculating page bandwidth usage (PHP/Ajax)
    ... retrieve live data from my DB, it's a fairly small amount of data (5 ... know is how to calculate the bandwidth of the data for every ten ... such software has little to do with PHP ... I just want to know how much data each ajax request is - I dont want ...
    (comp.lang.php)