Jump to content

Archived

This topic is now archived and is closed to further replies.

snaps

PHP Time

Recommended Posts

Hi, I'm a newb in php but I want to change the time with one hour less

Heres 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

Share this post


Link to post
Share on other sites
put time() - 3600 in parenthesis

fwrite($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...

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.