PHP Classes

File: examples/autoload.php

Recommend this page to a friend!
  Classes of Johnny Mast   Redbox PHP Scandir Filter   examples/autoload.php   Download  
File: examples/autoload.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Redbox PHP Scandir Filter
Scan files for new or modified files
Author: By
Last change:
Date: 8 years ago
Size: 308 bytes
 

Contents

Class file image Download
<?php
/**
 * We want to make sure we load the correct autoloader
 * where ever we are.
 */
date_default_timezone_set('EUROPE/AMSTERDAM');

if (
is_file(__DIR__ . '/../vendor/autoload.php')) {
    require_once
__DIR__ . '/../vendor/autoload.php';
} else {
    require_once
__DIR__ . '/../../../autoload.php';
}