Location: PHPKode > scripts > PHS_Error > phs_error/example2.php
<?
    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 );
}
}

?>
Return current item: PHS_Error