post_max_size muss kleiner als memory_limit sein.

  • Hallo,


    Weshalb muss die PHP Richtlinie "post_max_size" kleiner als "memory_limit" sein?
    Es ist weit verbreitet und wird auch oft so genutzt, dass "post_max_size" bzw "upload_max_filesize" größer als das Memory Limit ist.



    Grüße

  • Code
    1. Sets max size of post data allowed. This setting also affects file upload. To upload large files, this value must be larger than upload_max_filesize. Generally speaking, memory_limit should be larger than post_max_size.

    http://php.net/manual/en/ini.core.php#ini.post-max-size

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Thanks for your answer.
    Would it be possible to add just a warning message, so you would be still able to set higher values?
    I always set the upload filesize/ post_max_size higher than the Memory Limit and it works without a problem.

  • No !

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206