snaps Posted August 8, 2006 Share Posted August 8, 2006 Hi, I'm a newb in php but I want to change the time with one hour lessHeres the code:[quote]fwrite($datei, $uniqid."|".[u][b]time()[/b][/u]."|".$_SERVER["REMOTE_ADDR"]."|".$_POST['comment_id']."|".$name."|".$email_hp."|".$comment_text."\n");[/quote]I tried time()-3600, wont work :-[Please help Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted August 8, 2006 Share Posted August 8, 2006 put time() - 3600 in parenthesisfwrite($datei, $uniqid."|". (time() - 3600) ."|".$_SERVER["REMOTE_ADDR"]."|".$_POST['comment_id']."|".$name."|".$email_hp."|".$comment_text."\n");You need to know your operator precedence to know that... Quote Link to comment Share on other sites More sharing options...
snaps Posted August 8, 2006 Author Share Posted August 8, 2006 Works now, thk :) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.