English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Do any have any idea about the News Scroller script in which one can add or edit news online.

Make sure that the script is in php or java. [I dont want ASP]

2006-07-03 16:16:11 · 1 answers · asked by Anonymous in Computers & Internet Internet

I wann add my own institute news in that scroller and i want to do this online via user define editing form

2006-07-03 17:07:58 · update #1

1 answers

As far as displaying news articles on your site, all you need to do is set up a php script to fopen (or curl_init) to a site's RSS feed (you can find the link on most large news sites). Throw that into simpleXML ( http://www.php.net/manual/en/ref.simplexml.php ) and display whatever parts of the article you want to (and they supply).

Edit: script example
$xml = file_get_contents ("http://rss.cnn.com/rss/cnn_topstories.rss");
$xmlObj = simplexml_load_string( $xml );
var_dump($xmlObj);
?>

2006-07-03 16:34:05 · answer #1 · answered by John J 6 · 0 0

fedest.com, questions and answers