ini_set() / .user.ini
Ways to change PHP settings from inside a website. They are not enough for session.upload_progress.enabled; you have to edit the configuration file instead.
ini_set() is an instruction written inside a PHP program that changes a setting only while that program runs, and .user.ini is a small settings file that, placed in a site's folder, changes the PHP settings for that folder. It is like a building where the management office sets the rules for the whole building, and each shop may adjust only a few rules inside its own space. On shared hosting you often cannot edit the server-wide configuration file, so these methods are used a lot.
Watch out Not every setting can be changed this way. session.upload_progress.enabled, one of the temporary measures for PHP2Shell, is decided before your program starts, so ini_set() cannot change it. Whether .user.ini works depends on the server, so the reliable way is the server's PHP configuration file or the PHP settings in your hosting control panel. Edits to .user.ini may also take a while to apply. Whichever method you use, always check that the value has actually changed.
Source: PHP Manual, “.user.ini files” · PHP Manual, “ini_set” (checked 2026-10-26)