PHP.nl

putenv

putenv

Sets the value of an environment variable

bool **putenv** string $assignment

Adds to the server environment. The environment variable will only exist for the duration of the current request. At the end of the request the environment is restored to its original state. assignment

assignment The setting, like "FOO=BAR"

return.success

Voorbeeld: Setting an environment variable

<?php
putenv("UNIQID=$uniqid");
?>

getenv``apache_setenv