차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 양쪽 이전 판이전 판다음 판 | 이전 판 | ||
| tech:simplepie [2013/04/30 16:14] – V_L | tech:simplepie [2016/07/12 00:56] (현재) – 바깥 편집 127.0.0.1 | ||
|---|---|---|---|
| 줄 1: | 줄 1: | ||
| + | {{tag> | ||
| + | ======심플파이 (Simplepie) - RSS리더====== | ||
| + | |||
| + | RSS를 긁어올 수 있는 오픈소스임. 설정이 간편하지만 기능은 막강함. | ||
| + | |||
| + | * [[http:// | ||
| + | |||
| + | <code php><? | ||
| + | $feed_no=7; | ||
| + | include_once(' | ||
| + | include_once(' | ||
| + | $feed2 = new SimplePie(); | ||
| + | $feed2-> | ||
| + | if (!empty($_GET[' | ||
| + | $success = $feed2-> | ||
| + | $feed2-> | ||
| + | ?> | ||
| + | <div class=" | ||
| + | <? | ||
| + | <div class=" | ||
| + | < | ||
| + | </ | ||
| + | < | ||
| + | <table > | ||
| + | <!-- Let's begin looping through each individual news item in the feed. --> | ||
| + | <?php foreach($feed2-> | ||
| + | < | ||
| + | <td class=" | ||
| + | </ | ||
| + | <?php endforeach; ?> | ||
| + | <? | ||
| + | </ | ||
| + | </ | ||
| + | ===== 속도===== | ||
| + | 좀 느린 것 같다. | ||
| + | 피드 두개 불러오는데 1초 걸림..캐쉬도 있는데... | ||
| + | |||
| + | ^ Magpie | ||
| + | | Light Weight | ||
| + | | Simple Implementation | ||
| + | | Easy to modify | ||
| + | | Less time to parse | Delay in parsing. | ||
| + | | Less documentation but enough | Good documented. | ||
| + | |||
| + | ====Cache==== | ||
| + | | ||
| + | |||
| + | ^ 캐쉬 방법 | ||
| + | | flatfile | 0.658 seconds in processing this page. | | ||
| + | | mysql | 0.149 seconds in processing this page. | | ||
| + | |||
| + | | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||