PHP Classes

File: RSSerrorExample.php

Recommend this page to a friend!
  Classes of Antonio Jozzolino   RSS Error   RSSerrorExample.php   Download  
File: RSSerrorExample.php
Role: Example script
Content type: text/plain
Description: Example file
Class: RSS Error
Generates RSS feeds from PHP error logs
Author: By
Last change:
Date: 18 years ago
Size: 2,191 bytes
 

Contents

Class file image Download
<?php
/* vim: set expandtab tabstop=4 shiftwidth=4: */
//
// +----------------------------------------------------------------------+
// | PHP version 4 |
// +----------------------------------------------------------------------+
// | Copyright (c) 1997-2005 The PHP Group |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.0 of the PHP license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available through the world-wide-web at |
// | http://www.php.net/license/2_02.txt. |
// | If you did not receive a copy of the PHP license and are unable to |
// | obtain it through the world-wide-web, please send a note to |
// | license@php.net so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
// | Authors: Antonio Jozzolino <info@sgd.com.br> |
// +----------------------------------------------------------------------+
//
// $Id: RSSerrorExample.php,v 1.4 2006/11/24 17:18:59 Antonio Jozzolino Exp $
//

/**
 * RSSerror class file example
 */
include_once('RSSerror.php');

$args = array( "root" => "/home/user/public_html/",
               
"local" => "file:///C:/Documents%20and%20Settings/Antonio%20Jozzolino/My%20Documents/My%20site/",
               
"log" => "/home/user/logs/error_log",
               
"url" => "http://www.user.com.br/",
               
"lines" => 5,
               
"password" => "123456"
             
);

$param = array( "encoding" => "UTF-8",
               
"language" => "pt-BR",
               
"title" => "Error Report for www.user.com.br",
               
"description" => "Please corrects some errors occurred in the site www.user.com.br",
               
"stylesheet" => "http://www.user.com.br/rsserror.css",
               
"link" => "http://www.user.com.br/"
             
);
$rss = new RRSerror($args, $param);
?>