YesYo.com MintState Forums
뒤로    YesYo.com MintState BBS > Tech > PHP
검색
멤버이름    오토
비밀번호 
 

MagpieRSS (include FEED ON FEEDS)

페이지 정보

작성자 MintState 댓글 0건 조회 23,594회 작성일 09-04-09 12:26

본문

MagpieRSS

http://magpierss.sourceforge.net/

<?
require_once('magpierss/rss_fetch.inc');
// $TeamUser -> 사이트 이름과 주소가 들어 있다.
while(list($name, $url)=each($rssList))
{
	// fetch_rss 한번 호출로 끝
	$rss = fetch_rss($url);
	$ctime = time();
	// rss중에서 items의 정보를 가져오기로 했다.
	// title, id, desc, 작성일 등등을 가져왔다.
	foreach ($rss->items as $item)
	{
		$title = mysql_escape_string($item[title]);
		$id = $item[link];
		$desc = mysql_escape_string($item[description]);
		$pubdate = $item[pubdate];
		// 위에서 얻어온 정보를 이용해서 Query를 만들어서
		// DB에 저장하면 끝이다.
	}
}
?>



* FEED ON FEEDS 첨부파일 확인
install
1. Download this tarball.
2. Explode it.
3. Copy fof-config-sample.php to fof-config.php, and edit it to contain the correct DB connection information.
  If needed, create a MySQL DB for FEED ON FEEDS.  Or, you can use an existing DB.
4. Upload the entire tree to wherever on your server you want FEED ON FEEDS to live.
5. Load the page http://{your server}/{wherever you put FEED ON FEEDS}/install.php.  The installer will first check that it can connect to your DB, and then attempt to create the necessary two tables.  Then, it will attempt to create a subdirectory called cache where it will store cached copies of RSS feeds.  This part of the installation may fail, as your PHP process may not have permission to create a directory.  You may need to create the directory {wherever you uploaded FEED ON FEEDS to}/cache/ yourself, and make sure it is writable by the PHP process.  If you needed to do that, reload install.php.
6. Just set a password for the admin account and you should be ready to go!

cron
20 * * * * /usr/local/bin/GET http://minutillo.com/steve/fof/update-quiet.php
첨부 파일
파일 종류: gz magpierss-0.72.tar.gz (35.6K, 41 views)
파일 종류: gz feedonfeeds-0.1.9.tar.gz (44.5K, 0 views)
파일 종류: tgz feedonfeeds-0.5.tgz (206.5K, 0 views)

댓글목록

등록된 댓글이 없습니다.

Total 165건 2 페이지
PHP 목록
번호 제목 글쓴이 조회 날짜
140 MintState 18397 07-02
139 MintState 16401 06-30
138 MintState 22514 04-28
137 MintState 15989 02-12
136 MintState 28749 01-13
135 MintState 16531 10-09
134 MintState 18247 08-25
133 MintState 15311 07-28
132 MintState 18644 04-28
열람중 MintState 23595 04-09
130 MintState 16109 04-06
129 MintState 13409 02-25
128 MintState 16665 02-25
127 MintState 12402 02-23
126 MintState 11632 02-23
125 MintState 16055 02-23
124 MintState 16389 02-17
123 MintState 15365 02-17
122 MintState 16986 11-17
121 MintState 22315 11-17
120 MintState 12266 11-17
119 MintState 17250 11-17
118 MintState 13846 11-17
117 MintState 16177 11-10
116 MintState 14504 11-10
게시물 검색
모바일 버전으로 보기
CopyRight ©2004 - 2024, YesYo.com MintState. ™