Hi My business is new to that forum and I need some assistance from other experienced fighters.
I have done a a number of basic webdesigns in addition to PHP and connecting to sql db.
I would prefer to add eyeglasses to my internet site and in these frames I need to add many live content just like from a news website by way of example cnn or people. I also choose to link to live local weather reports. I am undecided if I am with all the correct terminology by simply saying " live content". I work with dreamweaver CS3. Can anyone point me into the right direction please.
cheers
aussie: rambo:
You will end up looking at an Rss feed reader.
Very easy to do…
See the example newsfeed on this subject web page (left column):
http: //www. schoharievalleywatch. org/latest. php
See the Rss feed from windaction. org
Here’s the PHP script to the RSS Feed about that page:
< php
// rss page for WindAction. org -
$feed_url = "http: //www. windaction. org/latestpoststheme=rss";
# INITIATE CURL.
$curl = curl_init();
# CURL OPTIONS.
curl_setopt($curl, CURLOPT_URL, "$feed_url");
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 0);
# GRAB THE XML TRACK.
$xmlTwitter = curl_exec($curl);
curl_close($curl);
# SET UP XML THING.
# Depending on your PHP revision and server, pick one of
# the two methods below (comment-out the one you're not using)
//$xml = new SimpleXMLElement($xmlTwitter);
$xml = simplexml_load_string($xmlTwitter);
// How many items to display
$count = 5;
// How many characters from each item
// 0 (zero) will show them most of.
$char = 200;
foreach (
$xml-> channel-> item as $item)
if($char == 0)
$newstring = $item-> description;
else
$newstring = substr($item-> description, 0, $char);
if($count > 0)
//in case they have non-closed italics or daring, etc ...
echo"< /i> < /b> < /u> < /a> \n";
echo"
< b> $item-> <span