Safe mode?

john010117

Verified User
Joined
Dec 18, 2006
Messages
5
Location
Bungie Studios
I've got the following warning message on top of my forum.

Warning: putenv() [function.putenv]: Safe Mode warning: Cannot set environment variable 'TZ' - it's not in the allowed list in /home/****/domains/****/public_html/forum/index.php on line 414

Can anybody help get rid of it?
 
Take a server yourself ;) or ask admin
good admins know what to do and why they do it...

You don't need this variable modified, are you sending mail ?
If yes mail must match server time.
If you are running forum, most include TZ setting.

If you know your php script you installed, you know what to change. If not, let do php professional for you.
 
Ok...

My error message on top of my FORUM:
Warning: putenv() [function.putenv]: Safe Mode warning: Cannot set environment variable 'TZ' - it's not in the allowed list in /home/****/domains/****/public_html/forum/index.php on line 414

My code in index.php from lines 413 - 418:
Code:
//date functions (Set to localtimezone)
putenv('TZ=GMT');

	$sql = "SELECT id, content, date, user FROM " . ANNOUNCE . " ORDER BY ID DESC LIMIT $display ";
if ( ! ( $result = $db->sql_query($sql) ) )
{

Care to help?
 
change
putenv('TZ=GMT');
to
@putenv('TZ=GMT');
or
// putenv('TZ=GMT');

This is not a forum for php support !
 
Back
Top