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

새로운것을 짜고있네요.

· 13년 전 · 2593 · 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 의 게시판에서 다운또는 히트한 숫자입니다.

게시글 목록

번호 제목
1717265
1717252
1717247
1717243
1717237
1717225
1717214
1717208
1717203
1717189
1717183
1717177
1717172
1717163
1717162
1717156
1717154
1717153
1717141
1717140
1717138
1717113
1717111
1717105
1717099
1717085
1717076
1717072
1717065
1717062