Login   Register  
PHP Classes
elePHPant
Icontem

File: examples/includes/bootstrap.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Oliver Lillie  >  PHP Video Toolkit  >  examples/includes/bootstrap.php  >  Download  
File: examples/includes/bootstrap.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Video Toolkit
Manipulate and convert videos with ffmpeg program
Author: By
Last change: Merge branch 'master' of https://github.com/buggedcom/phpvideotoolkit-v2
Date: 2013-11-22 07:08
Size: 795 bytes
 

Contents

Class file image Download
<?php

    ini_set
('error_reporting''1');
    
ini_set('track_errors''1');
    
ini_set('display_errors''1');
    
ini_set('display_startup_errors''1');
    
//  define the error callback
    
function __errorHandler()
    {      
        
$args func_get_args();      
        
$count func_num_args(); 
        \
PHPVideoToolkit\Trace::vars('ERROR---------'$count === 'exception' 'error'$args);
    }
    
set_error_handler('__errorHandler');
    
set_exception_handler('__errorHandler');
    
    
$basedir dirname(dirname(dirname(__FILE__))).DIRECTORY_SEPARATOR;
    
define('BASE'$basedir);
 
    if(
is_file(BASE.'vendor/autoload.php')) require_once BASE.'vendor/autoload.php';
    
    require_once 
BASE.'autoloader.php';
    require_once 
BASE.'examples/includes/config.php';