Zen Follower
- Join Date:
- Dec 2010
- Location:
- Thailand
- Posts:
- 304
- Plugin Contributions:
- 1
PHP Warning: putenv() has been disabled for security reasons
Hello,
I was getting this warming in my log:
PHP Warning: putenv() has been disabled for security reasons in /home/MYFOLDER/public_html/includes/extra_configures/set_time_zone.php on line 28
I am pretty sure it's server-related.
I uncommented lines 27 to 30 in set_time_zone.php as indicated below:
/* if ($TZ != '') {
putenv('TZ=' . $TZ);
@date_default_timezone_set($TZ);
}
*/
No more warning :smile: ... but if someone sees any reason not to do this please advise.