PHP Classes

File: example2.php

Recommend this page to a friend!
  Classes of Andrei Orghici   PHS_Error   example2.php   Download  
File: example2.php
Role: Example script
Content type: text/plain
Description: Example file (included from example.php - don't run this file)
Class: PHS_Error
Keep track of application errors and warnings
Author: By
Last change:
Date: 15 years ago
Size: 350 bytes
 

Contents

Class file image Download
<?
   
if( is_object( $cls ) )
       
$cls->add_warning( "Warning from an included file...", "INCLUDES" );
    else
        echo
"This file should be included from exaple.php";

if( !
function_exists( "inc_func_set_error" ) )
{
function
inc_func_set_error( $code, $msg )
{
    global
$cls;

   
$cls->set_error( $code, $msg );
}
}

?>