I’m sorry, but putenv
is not and cannot be enabled on free hosting.
There are usually one of two reasons why putenv
may be necessary:
- Your software needs to set environment variables to pass to system commands. But executing system commands is blocked on our hosting entirely, so no need to have any functions which set parameters for system commands. If your software needs to do system commands, that means the software cannot be hosted on our hosting.
- Your software uses
.env
files for configuration, and the developer (mistakenly) believes that theputenv
function is necessary to do that. If so, this is a bug in the software, not an issue with the hosting platform.