Am 26.04.2019 um 09:38 schrieb Markus Falb markus.falb@fasel.at:
On 24.04.19 17:40, Benjamin Smith wrote:
On Wednesday, April 24, 2019 3:44:04 AM PDT Leon Fauster via CentOS wrote:
Am 24.04.2019 um 08:37 schrieb Benjamin Smith lists@benjamindsmith.com:
...
So I wrote a /cgi-bin script that works, takes the input, and even runs the
...
Why not implementing this directly as "PHP"-script that runs via php-fpm and not via "standard" CGI?
Because "normal" php processes all of POST data in memory and is thereby constrained to the limit of available memory. Typically in the range of a few MB. This makes it impossible to upload LARGE files, EG 100s of MB or GBs in size.
I think it is possible, but has side effects. https://php.net/manual/en/ini.core.php#ini.enable-post-data-reading
the application should not use POST, it should use PUT ...
-- LF