Share | | | | | | | | | | |



Новости туризма
Новости туризма


Экстремальный туризм и отдых

http://www.votpusk.ru/newsrss/tm/news5.xml", 1 => " ", 2 => " ", ); // // Makes a pretty HTML page bit from the title, // description and link // function FormatRow($title, $description, $link) { return "


$title

$description

"; } // we'll buffer the output ob_start(); // Now we make sure that we have a feed selected to work with if (!isset($feedid)) $feedid = 0; $rss_url = $RSSFEEDS[$feedid]; // Server friendly page cache $ttl = 0*0;// 60 secs/min for 60 minutes = 1 hour(360 secs) $cachefilename = md5($rss_url); if (file_exists($cachefilename) && (time() - $ttl < filemtime($cachefilename))) { // We recently did the work, so we'll save bandwidth by not doing it again include($cachefilename); exit(); } // Now we read the feed $rss_feed = file_get_contents($rss_url); // Now we replace a few things that may cause problems later $rss_feed = str_replace("", "", $rss_feed); $rss_feed = str_replace("\n", "", $rss_feed); // If there is an image node remove it, we aren't going to use // it anyway and it often contains a and <link> // that we don't want to match on later. $rss_feed = preg_replace('#<image>(.*?)</image>#', '', $rss_feed, 1 ); // Now we get the nodes that we're interested in preg_match_all('#<title>(.*?)#', $rss_feed, $title, PREG_SET_ORDER); preg_match_all('#(.*?)#', $rss_feed, $link, PREG_SET_ORDER); preg_match_all('#(.*?)#', $rss_feed, $description, PREG_SET_ORDER); // // Now that the RSS/XML is parsed.. Lets Make HTML ! // // If there is not at least one title, then the feed was empty // it happens sometimes, so lets be prepared and do something // reasonable if(count($title) <= 1) { echo "No news at present, please check back later.

"; } else { // OK Here we go, this is the fun part // Well do up the top 3 entries from the feed for ($counter = 1; $counter <= 100; $counter++ ) { // We do a reality check to make sure there is something we can show if(!empty($title[$counter][1])) { // Then we'll make a good faith effort to make the title // valid HTML $title[$counter][1] = str_replace("&", "&", $title[$counter][1]); $title[$counter][1] = str_replace("'", "'", $title[$counter][1]); // The description often has encoded HTML entities in it, and // we probably don't want these, so we'll decode them $description[$counter][1] = html_entity_decode( $description[$counter][1]); // Now we make a pretty page bit from the data we retrieved from // the RSS feed. Remember the function FormatRow from the // beginning of the program ? Here we put it to use. $row = FormatRow($title[$counter][1],$description[$counter][1],$link[$counter][1]); // And now we'll output the new page bit! echo $row; } } } // All Finished! ob_end_flush(); // Send the output to the browser ?>

Энциклопедия Страны Мира | вОтпуск Туристические новости

А Б В Г Д Е Ж З И, Й К Л М Н О П Р С Т У Ф Х Ц Ч Ш, Щ Э Ю Я


World-Tours.ru @ Энциклопедия Страны Мира: Новые статьи


Карты: спутниковая карты стран, подробные карты мира, интерактивные карты онлайн

Видео о США

НОВЫЙ ОРЛЕАН, США шт.Луизиана

Видео об Италии - горнолыжные курорты

Антигуа и Барбуда

ТУНИС, Тунис п.Ла Гулет

Ближайшие Выставки Товары для Детей и Будущих мам, заказ билетов на выставки, календарь выставок


Booking Онлайн Бронирование отелей. Описание отелей. Популярные отели


Государственное устройство Маврикий. Республика Маврикий

Телефонный справочник Екатеринбург

Государственное устройство Грузия. Республика Грузия

Государственное устройство Непал. Королевство Непал

Государственное устройство Армения. Республика Армения

Отели эконом и бизнес-класса Токио Япония


Энциклопедия туризма. Полезные советы туристу


В апреле 1997 г. фотографии спутника Юпитера Европы, сделанные с искусственного спутника Земли *Галилей*, позволили предположить, что под ледяной корой Европы находится Холодное море.

Самый крупный град. В 1986 г. в районе Гопалгандж, Бангладеш, падали градины весом до 1 кг.

Бронирование отелей Booking онлайн


НОВОСТНОЙ БЛОК  

.

AdLabs Партнерская программа: Разместить рекламу в этом блоке

 

free counters

 

Rambler's Top100

 

World-Tours.ru @ Энциклопедия страны Мира, энциклопедия туризма, бронирование отелей