rss.php

来自「falsh web site which can run」· PHP 代码 · 共 46 行

PHP
46
字号
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" dir="ltr" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<?php
	require_once("rsslib.php");
?>

<title>Demo of loading an RSS feed and displaying it into the same page</title></head>

	
<body bgcolor="#FFFFFF">
<h1>RSS Reader</h1>
<hr>

<FORM name="rss" method="POST" action="rss.php">
<p>
	<INPUT type="submit" value="Submit">     
</p>
  <p> 
    <input type="text" name="dyn" size="48" value="http://rss.seek.com.au/rss.aspx?catlocation=1004&catindustry=1215&Keywords=&RM=it&RMO=model-it&RUS=SEEKIT_USR&RID=23352892">
  </p>
</FORM><?php

if (isset( $_POST ))
	$posted= &$_POST ;			
else
	$posted= &$HTTP_POST_VARS ;	


if($posted!= false && count($posted) > 0)
{	
	$url= $posted["dyn"];
	if($url != false)
	{
		echo RSS_Display($url, 15);
	}
}
?>




</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?