PHP Classes

File: feed_validator_example.php

Recommend this page to a friend!
  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: 18 years ago
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.";

?>