|
|
|
14년 전
|
조회 765
|
|
|
|
14년 전
|
조회 986
|
|
|
|
14년 전
|
조회 2,570
|
|
|
|
14년 전
|
조회 1.4만
|
|
|
|
14년 전
|
조회 1,575
|
|
|
|
14년 전
|
조회 952
|
|
|
|
14년 전
|
조회 813
|
|
|
|
14년 전
|
조회 1,014
|
|
|
|
14년 전
|
조회 1,000
|
|
|
|
14년 전
|
조회 940
|
|
|
|
14년 전
|
조회 1,608
|
|
|
|
14년 전
|
조회 919
|
|
|
|
14년 전
|
조회 852
|
|
|
|
14년 전
|
조회 890
|
|
|
|
14년 전
|
조회 1,539
|
|
|
|
14년 전
|
조회 1,019
|
|
|
|
14년 전
|
조회 1,532
|
|
|
|
14년 전
|
조회 757
|
|
|
|
14년 전
|
조회 781
|
|
|
|
14년 전
|
조회 782
|
댓글 2개
// 자주 사용하는 값
// 서버의 시간과 실제 사용하는 시간이 틀린 경우 수정하세요.
// 하루는 86400 초입니다. 1시간은 3600초
// 6시간이 빠른 경우 time() + (3600 * 6);
// 6시간이 느린 경우 time() - (3600 * 6);
$g4['server_time'] = time();
$g4['time_ymd'] = date("Y-m-d", $g4['server_time']);
$g4['time_his'] = date("H:i:s", $g4['server_time']);
$g4['time_ymdhis'] = date("Y-m-d H:i:s", $g4['server_time']);
답변 감사드립니다.
그리고 하나만 더 여쭤본다면 오늘게시글은 시간으로 출력되고
하루가 지나야지 날짜로 출력이 되는데 오늘게시물도 날짜로
출력시키려면 어떻게 해야 하나요?
혹시 아래부분이 맞는지요?
--------------------------------------------------------
if ($mw_basic[cf_guploader]) {
$gup_old = date("Y-m-d H:i:s", $g4[server_time] - 86400);
$sql = "select * from $mw[guploader_table] where bf_datetime <= '$gup_old'";
$qry = sql_query($sql, false);
while ($row = sql_fetch_array($qry)) {
@unlink("$g4[path]/data/guploader/$row[bf_file]");
}
sql_query("delete from $mw[guploader_table] where bf_datetime <= '$gup_old'", false);
}