php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35685 post_max_size stays locked to 8M
Submitted: 2005-12-15 17:28 UTC Modified: 2005-12-16 00:15 UTC
From: motion_4u at hotmail dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.1.1 OS: Windows 2000 advanced
Private report: No CVE-ID: None
 [2005-12-15 17:28 UTC] motion_4u at hotmail dot com
Description:
------------
I have tried to upload a 100MB file to the server and for that I have changed the following variables to enable the upload within PHP.INI file:

max_execution_time = 3000
max_input_time = 600
memory_limit = 200M
post_max_size = 200M

But uploading small files up to 8 MB do work but PHP stops the upload for files bigger than 8 MB.

I have also tried to set the post_max_size value with the
 
ini_set ( "post_max_size", "200M" );

with no success.

Actual result:
--------------
Calling the below snippent 
echo 'post_max_size = ' . ini_get('post_max_size');

shows still: post_max_size =8M :((

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-12-15 19:40 UTC] sniper@php.net
And what is upload_max_filesize set to?
Does the upload give any error?
Do var_dump($_FILES); and you should see the error code.

 [2005-12-15 19:41 UTC] sniper@php.net
And FYI: PHP does not store the whole file in memory. Thus the memory_limit of 200M is a bit too much. 8M is fine.
 [2005-12-16 00:11 UTC] motion_4u at hotmail dot com
Ok, found the problem and have set the memory_limit back to 8M.
The problem is that Windows caching everything!
PHP works ok, for solving the problem, one must clear the cache of the browser and the server by cold booting the server and the client both! Clearing the cache of the browser alone will not do!

Thanx
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 14 21:01:33 2025 UTC