Test Code

#hashtag
420
0 theo dõi 0 bạn bè
Thông tin
Link tài khoản:
Xem trên Lazigo
Thành tích: 0 câu hỏi | 1 trả lời
Điểm số: 0đ giải bài | 9đ tặng
Chưa đạt Huy hiệu Học tập
Số ngày hoạt động: 1 ngày
Chưa đạt Huy hiệu Chuyên cần
Huy hiệu (+)
0 - 0 - 0
Học lực: Chưa xác định
Cấp học: Trung học phổ thông
Môn học yêu thích:
Tình trạng: Chưa xác định
Sở thích: Chưa xác định
Đã tham gia: 26-08-2020
Số ngày hoạt động: 1 ngày
Báo cáo vi phạm
1
1 sao / 1 đánh giá
5 sao - 0 đánh giá
4 sao - 0 đánh giá
3 sao - 0 đánh giá
2 sao - 0 đánh giá
1 sao - 1 đánh giá
Điểm 1 SAO trên tổng số 1 đánh giá
0 quà tặng | 0 câu hỏi | 1 trả lời
0 0
Test Code
Link | Report
2020-08-26 11:43:01
Chat Online
Test CodeSửa | Xóa | Link
2020-08-26 11:24:16
$doc = new DOMDocument();
$doc->load('http://www.baomoi.com/Rss/RssFeed.ashx');
$Feeds = array();
foreach ($doc->getElementsByTagName('item') as $node) {
        $itemRSS = array (
            'title' => $node->getElementsByTagName('title')->item(0)->nodeValue,
            'desc' => $node->getElementsByTagName('description')->item(0)->nodeValue,
            'link' => $node->getElementsByTagName('link')->item(0)->nodeValue,
            'date' => $node->getElementsByTagName('pubDate')->item(0)->nodeValue
            );
        array_push($Feeds, $itemRSS);
    }
0 0
Đăng nhập tài khoản để có thể bình luận cho nội dung này!

Đăng ký | Đăng nhập

Test Code
Link | Report
2020-08-26 11:24:16
Chat Online
$doc = new DOMDocument();
$doc->load('http://www.baomoi.com/Rss/RssFeed.ashx');
$Feeds = array();
foreach ($doc->getElementsByTagName('item') as $node) {
        $itemRSS = array (
            'title' => $node->getElementsByTagName('title')->item(0)->nodeValue,
            'desc' => $node->getElementsByTagName('description')->item(0)->nodeValue,
            'link' => $node->getElementsByTagName('link')->item(0)->nodeValue,
            'date' => $node->getElementsByTagName('pubDate')->item(0)->nodeValue
            );
        array_push($Feeds, $itemRSS);
    }
0 0
Test Code | Chat Online Report
<?php

 $rss = new DOMDocument();

 $rss->load('http://wordpress.org/news/feed/');

 $feed = array();

 foreach ($rss->getElementsByTagName('item') as $node) {

  $item = array (

   'title' => $node->getElementsByTagName('title')->item(0)->nodeValue,

   'desc' => $node->getElementsByTagName('description')->item(0)->nodeValue,

   'link' => $node->getElementsByTagName('link')->item(0)->nodeValue,

   'date' => $node->getElementsByTagName('pubDate')->item(0)->nodeValue,

   );

  array_push($feed, $item);

 }

 $limit = 5;

 for($x=0;$x<$limit;$x++) {

  $title = str_replace(' & ', ' &amp; ', $feed[$x]['title']);

  $link = $feed[$x]['link'];

  $description = $feed[$x]['desc'];

  $date = date('l F d, Y', strtotime($feed[$x]['date']));

  echo '<p><strong><a href="'.$link.'" title="'.$title.'">'.$title.'</a></strong><br />';

  echo '<small><em>Posted on '.$date.'</em></small></p>';

  echo '<p>'.$description.'</p>';

 }

?>
0 0
Test Code | Chat Online Report
<?php

 $rss = new DOMDocument();

 $rss->load('http://wordpress.org/news/feed/');

 $feed = array();

 foreach ($rss->getElementsByTagName('item') as $node) {

  $item = array (

   'title' => $node->getElementsByTagName('title')->item(0)->nodeValue,

   'desc' => $node->getElementsByTagName('description')->item(0)->nodeValue,

   'link' => $node->getElementsByTagName('link')->item(0)->nodeValue,

   'date' => $node->getElementsByTagName('pubDate')->item(0)->nodeValue,

   );

  array_push($feed, $item);

 }

 $limit = 5;

 for($x=0;$x<$limit;$x++) {

  $title = str_replace(' & ', ' &amp; ', $feed[$x]['title']);

  $link = $feed[$x]['link'];

  $description = $feed[$x]['desc'];

  $date = date('l F d, Y', strtotime($feed[$x]['date']));

  echo '<p><strong><a href="'.$link.'" title="'.$title.'">'.$title.'</a></strong><br />';

  echo '<small><em>Posted on '.$date.'</em></small></p>';

  echo '<p>'.$description.'</p>';

 }

?>
0 0
Đăng nhập tài khoản để có thể bình luận cho nội dung này!

Đăng ký | Đăng nhập

Test Code
Link | Report
2020-08-26 11:24:13
Chat Online
$doc = new DOMDocument();
$doc->load('http://www.baomoi.com/Rss/RssFeed.ashx');
$Feeds = array();
foreach ($doc->getElementsByTagName('item') as $node) {
        $itemRSS = array (
            'title' => $node->getElementsByTagName('title')->item(0)->nodeValue,
            'desc' => $node->getElementsByTagName('description')->item(0)->nodeValue,
            'link' => $node->getElementsByTagName('link')->item(0)->nodeValue,
            'date' => $node->getElementsByTagName('pubDate')->item(0)->nodeValue
            );
        array_push($Feeds, $itemRSS);
    }
0 0
Đăng nhập tài khoản để có thể bình luận cho nội dung này!

Đăng ký | Đăng nhập

Test Code
Link | Report
2020-08-26 11:24:10
Chat Online
$doc = new DOMDocument();
$doc->load('http://www.baomoi.com/Rss/RssFeed.ashx');
$Feeds = array();
foreach ($doc->getElementsByTagName('item') as $node) {
        $itemRSS = array (
            'title' => $node->getElementsByTagName('title')->item(0)->nodeValue,
            'desc' => $node->getElementsByTagName('description')->item(0)->nodeValue,
            'link' => $node->getElementsByTagName('link')->item(0)->nodeValue,
            'date' => $node->getElementsByTagName('pubDate')->item(0)->nodeValue
            );
        array_push($Feeds, $itemRSS);
    }
0 0
Đăng nhập tài khoản để có thể bình luận cho nội dung này!

Đăng ký | Đăng nhập

Test Code
Link | Report
2020-08-26 11:21:48
Chat Online
?php function validateFeed( $sFeedURL ) { $sValidator = 'http://feedvalidator.org/check.cgi?url='; if( $sValidationResponse = @file_get_contents($sValidator . urlencode($sFeedURL)) ) { if( stristr( $sValidationResponse , 'This is a valid RSS feed' ) !== false ) { return true; } else { return false; } } else { return false; } } ?>
0 0
Đăng nhập tài khoản để có thể bình luận cho nội dung này!

Đăng ký | Đăng nhập

Test Code
Link | Report
2020-08-26 11:21:41
Chat Online
?php function validateFeed( $sFeedURL ) { $sValidator = 'http://feedvalidator.org/check.cgi?url='; if( $sValidationResponse = @file_get_contents($sValidator . urlencode($sFeedURL)) ) { if( stristr( $sValidationResponse , 'This is a valid RSS feed' ) !== false ) { return true; } else { return false; } } else { return false; } } ?>
0 0
Đăng nhập tài khoản để có thể bình luận cho nội dung này!

Đăng ký | Đăng nhập

Test Code
Link | Report
2020-08-26 11:21:41
Chat Online
?php function validateFeed( $sFeedURL ) { $sValidator = 'http://feedvalidator.org/check.cgi?url='; if( $sValidationResponse = @file_get_contents($sValidator . urlencode($sFeedURL)) ) { if( stristr( $sValidationResponse , 'This is a valid RSS feed' ) !== false ) { return true; } else { return false; } } else { return false; } } ?>
0 0
Đăng nhập tài khoản để có thể bình luận cho nội dung này!

Đăng ký | Đăng nhập

Test Code
Link | Report
2020-08-26 11:21:39
Chat Online
?php function validateFeed( $sFeedURL ) { $sValidator = 'http://feedvalidator.org/check.cgi?url='; if( $sValidationResponse = @file_get_contents($sValidator . urlencode($sFeedURL)) ) { if( stristr( $sValidationResponse , 'This is a valid RSS feed' ) !== false ) { return true; } else { return false; } } else { return false; } } ?>
0 0
Đăng nhập tài khoản để có thể bình luận cho nội dung này!

Đăng ký | Đăng nhập

Test Code
Link | Report
2020-08-26 11:21:35
Chat Online
?php function validateFeed( $sFeedURL ) { $sValidator = 'http://feedvalidator.org/check.cgi?url='; if( $sValidationResponse = @file_get_contents($sValidator . urlencode($sFeedURL)) ) { if( stristr( $sValidationResponse , 'This is a valid RSS feed' ) !== false ) { return true; } else { return false; } } else { return false; } } ?>
0 0
Đăng nhập tài khoản để có thể bình luận cho nội dung này!

Đăng ký | Đăng nhập

Test Code
Link | Report
2020-08-26 11:21:35
Chat Online
?php function validateFeed( $sFeedURL ) { $sValidator = 'http://feedvalidator.org/check.cgi?url='; if( $sValidationResponse = @file_get_contents($sValidator . urlencode($sFeedURL)) ) { if( stristr( $sValidationResponse , 'This is a valid RSS feed' ) !== false ) { return true; } else { return false; } } else { return false; } } ?>
0 0
Đăng nhập tài khoản để có thể bình luận cho nội dung này!

Đăng ký | Đăng nhập