|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-06-11 13:35 UTC] sander@php.net
[2002-06-12 09:58 UTC] tr909 at bigfoot dot com
[2002-06-12 14:12 UTC] philip@php.net
[2002-06-12 16:46 UTC] goba@php.net
[2002-07-09 02:35 UTC] philip@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 21 09:00:02 2025 UTC |
Hello great PHP, i stumble over and over on 'upload_max_filesize' > ini_set('upload_max_filesize','8M'); > var_dump( ini_get('upload_max_filesize') ); this returns a nice string(2) "8M", but if you do a var_dump($HTTP_POST_FILES) after uploading a 3MB movie it returns: > array(1) { ["ufile"]=> > array(4) { ["name"]=> string(19) "PN.mpg" > ["type"]=> string(10) "video/mpeg" > ["tmp_name"]=> string(4) "none" > ["size"]=> int(0) > } > } ONLY if you change upload_max_filesize in php.ini then will it listen to the correct size.... ini_set() function documention says... 'Returns the old value on success, FALSE on failure.' this means that ini_set() should return FALSE if you cannot set upload_max_filesize in your script OR that the max-upload-size should be set to the new value and accepted. at the moment this is very confusing because it returns the old value. Even init_get() returns the newly set value. In the end upload_m-fsize is as set in the ini file. Tr909