Set Environment Variable using PHP

putenv function

<?php

$envVar = 'root';
putenv('USER='.$envVar);

Leave a Comment

Cancel reply

Your email address will not be published.