테스트 사이트 - 개발 중인 베타 버전입니다

새로운것을 짜고있네요.

· 13년 전 · 2594 · 10
x일 동안 인기순위
x일 동안 다운로드 순위
부하를 줄이기 위해 특정 시간마다  json을 생성하고 파싱해오는식으로 짜고있네요~

{
  "download": [
       { "no": "1", "bo_table": ["free"], "wr_id": ["7"], "datetime": ["2012-07-24"], "count": ["1"] },
  ],

  "view": [
       { "no": "27", "bo_table": ["free"], "wr_id": ["2"], "datetime": ["2012-07-25"], "count": ["3"] },
       { "no": "20", "bo_table": ["free"], "wr_id": ["3"], "datetime": ["2012-07-25"], "count": ["3"] },
       { "no": "12", "bo_table": ["free"], "wr_id": ["4"], "datetime": ["2012-07-25"], "count": ["3"] },
       { "no": "15", "bo_table": ["free"], "wr_id": ["5"], "datetime": ["2012-07-25"], "count": ["3"] },
       { "no": "4", "bo_table": ["free"], "wr_id": ["6"], "datetime": ["2012-07-24"], "count": ["1"] },
       { "no": "14", "bo_table": ["free"], "wr_id": ["6"], "datetime": ["2012-07-25"], "count": ["2"] },
       { "no": "8", "bo_table": ["free"], "wr_id": ["7"], "datetime": ["2012-07-24"], "count": ["1"] },
       { "no": "35", "bo_table": ["free"], "wr_id": ["7"], "datetime": ["2012-07-25"], "count": ["2"] },
       { "no": "6", "bo_table": ["free"], "wr_id": ["8"], "datetime": ["2012-07-24"], "count": ["1"] },
       { "no": "13", "bo_table": ["free"], "wr_id": ["8"], "datetime": ["2012-07-25"], "count": ["3"] },
       { "no": "5", "bo_table": ["free"], "wr_id": ["9"], "datetime": ["2012-07-24"], "count": ["1"] },
       { "no": "22", "bo_table": ["free"], "wr_id": ["9"], "datetime": ["2012-07-25"], "count": ["3"] },
       { "no": "2", "bo_table": ["free"], "wr_id": ["11"], "datetime": ["2012-07-24"], "count": ["2"] },
       { "no": "26", "bo_table": ["free"], "wr_id": ["11"], "datetime": ["2012-07-25"], "count": ["4"] },
  ]
}

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

댓글 10개

13년 전
누가 내 욕 써놨네... 싱고...
ㅋㅋㅋㅋㅋ
이건 뭐임?? =ㅅ=;
1억원(마음만으로) 짜리? 프로그램이요 ㅎㅎ
json이 좋기는 한데 배열참조가 왜 그 모양이 나오는지...ㅡ.ㅡ;
php에서 json 파일 불어와 참조하는게 따로 있나요?
ㅎㅎㅎㅎ
제가 쓰기 편하게 배열을 짰구요.
php에서 json을 불러와 씁니다.
그게 아니라 말이죠,
예를 들어 위 내용중 view->bo_table값을 참조할 때의
모양새를 말하고 있습니다 ㅋㅋ
json_decode() 물어보신 것 같네요
json파일을 불러와 일단 decoding시킨 후 얘깁니다.
예, 맞습니다.
view와 다운로드는 히트와 다운로드 구분이구요.
bo_table 은 게시판이고.
wr_id는 게시글 테이블 코드
datetime는 다운 혹은 view한 날짜
count는 같은 날짜에 같은 게시판에 같은 wr_id 의 게시판에서 다운또는 히트한 숫자입니다.

게시글 목록

번호 제목
1717076
1717072
1717065
1717062
1717050
1717042
1717041
1717036
1717025
1717024
1717016
1717014
1717006
1717004
1716995
1716986
1716982
1716978
1716974
1716968
1716966
1716952
1716945
1716934
1716926
1716920
1716915
1716914
1716912
1716906