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

새로운것을 짜고있네요.

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

게시글 목록

번호 제목
1717479
1717473
1717470
1717463
1717452
1717438
1717431
1717422
1717414
1717412
1717407
1717401
1717393
1717386
1717379
1717378
1717365
1717364
1717360
1717359
1717346
1717344
1717333
1717327
1717313
1717312
1717310
1717307
1717306
1717304