MinuteElectron wrote:
Platonides wrote:
upload ;) ) . Ideally, receiving the file would be made by a CGI and not by php.
Why? There is not much benefit (if any) of using CGI as opposed to PHP, and it would be a waste to duplicate a large ammount of code just for an installer.
MinuteElectron.
PHP reads and parses each field and then starts the script. If the ploading file is larger than the memory PHP is allowed to use for it, the input arrays become empty. A CGI acts at a lower level, so eg. you can don't need the whole file before being able to detect it's larger than what you allow (when does php check it?), you don't allow that extension or the file has a wrong extension.
My idea was a simple CGI which then passes the control to the php, not reimplementing everything. Or you could fix php. Maybe it has been improved, it's a while since i checked.