PutEnv ("UNIQID = $ uniqid");
Quotes from: PHP Manual, Feature Reference,putenv
For example, if a particular system command required a special value
of the environment variable LD_LIBRARY_PATH to execute successfully,
then the following code might be used on a *NIX system:
<?php
$saved = getenv("LD_LIBRARY_PATH");
$newld = "/extra/library/dir:/another/path/to/lib";
if ($saved) { $newld .= ":$saved"; }
putenv("LD_LIBRARY_PATH=$newld");
system("mycommand -with args");
putenv("LD_LIBRARY_PATH=$saved");
?>
source
share