putenv
Sets the value of an environment variable
Description
bool putenv(string $assignment
)
Parameters
-
assignment
-
The setting, like "FOO=BAR"
Return Values
Returns true
on success or false
on failure.
Examples
Example #1 Setting an environment variable
<?php
putenv("UNIQID=$uniqid");
?>