Difference between revisions of "WolfTech Information Technology"
m |
m |
||
Line 66: | Line 66: | ||
------------------------------------ | ------------------------------------ | ||
+ | |||
+ | <php> | ||
+ | require('magpierss/rss_fetch.inc'); | ||
+ | #require('magpierss/rss_utils.inc'); | ||
+ | $url="http://www.wolftech.ncsu.edu/news/?feed=rss2"; | ||
+ | $num_items = 5; | ||
+ | |||
+ | $rss = fetch_rss($url); | ||
+ | $rss->items = array_slice($rss->items, 0, $num_items); | ||
+ | |||
+ | echo "<b><a href=\"http://www.wolftech.ncsu.edu/news/\">", $rss->channel['title'], "</a></b><br>"; | ||
+ | foreach ($rss->items as $item ) { | ||
+ | $title = $item[title]; | ||
+ | $url = $item[link]; | ||
+ | $published = strtotime($item[pubdate]); | ||
+ | echo date("M dS H:i", $published); | ||
+ | echo " - "; | ||
+ | echo "<a href=$url>$title</a></li><br>"; | ||
+ | } | ||
+ | |||
+ | </php> |
Revision as of 16:35, 5 January 2007
Welcome to the one-stop computing resource site for Electrical and Computer Engineering and all other NC State users of WolfTech computing or web resources. With this site, you only have to remember one address to find anything and everything about using your computer at NC State. We're continuing to add vast amounts of information to this website, and should you find anything missing, we encourage you to email us a request for more information.
Before getting started, be sure you have read through the NC State and ECE Information Technology Policies.
|
|
|
|
<php> require('magpierss/rss_fetch.inc');
- require('magpierss/rss_utils.inc');
$url="http://www.wolftech.ncsu.edu/news/?feed=rss2"; $num_items = 5;
$rss = fetch_rss($url); $rss->items = array_slice($rss->items, 0, $num_items);
echo "<a href=\"http://www.wolftech.ncsu.edu/news/\">", $rss->channel['title'], "</a>
";
foreach ($rss->items as $item ) {
$title = $item[title];
$url = $item[link];
$published = strtotime($item[pubdate]);
echo date("M dS H:i", $published);
echo " - ";
echo "<a href=$url>$title</a>
";
}
</php>