Login   Register  
PHP Classes
elePHPant
Icontem

File: feed_validator_example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Svetoslav Marinov  >  Feed Validator  >  feed_validator_example.php  >  Download  
File: feed_validator_example.php
Role: Example script
Content type: text/plain
Description: Example for Feed Validator PHP class
Class: Feed Validator
Validate a RSS feed with feedvalidator.org service
Author: By
Last change:
Date: 2006-03-17 17:28
Size: 256 bytes
 

Contents

Class file image Download
<?php

    
require_once("feed_validator.class.php");

    
$obj =& new feed_validator();

    
//if ($obj->validate("http://yahoo.com/"))
    
if ($obj->validate("http://rss.news.yahoo.com/rss/hotzone"))
        print 
"Feed OK...\n";
    else
        print 
"Not valid.";

?>