Search found 2 matches

by rhaymonn23
Tue Nov 23, 2010 3:36 am
Forum: PHP - Code
Topic: Regarding clearing cookies on logout
Replies: 1
Views: 51

Re: Regarding clearing cookies on logout

Code: Select all

<?php
// set the expiration date to one hour ago
setcookie ("TestCookie", "", time() - 3600);
setcookie ("TestCookie", "", time() - 3600, "/~rasmus/", ".example.com", 1);
?>
Ref = http://php.net/manual/en/function.setcookie.php
by rhaymonn23
Tue Nov 23, 2010 2:09 am
Forum: PHP - Code
Topic: timestamp problem
Replies: 0
Views: 106

timestamp problem

Hi, I'm getting error on PHP strtotime('2010-11-23 00:00:00') using different timezone. It output different values. Asia/Taipei int(1290441600) Europe/London int(1290470400) expected : Same values using timestamp date_default_timezone_set('Asia/Taipei'); echo $timezone = date_default_timezone_get();...