PHP Classes

File: example/autoloader.php

Recommend this page to a friend!
  Classes of Patrick Van Bergen   Move Me GIF   example/autoloader.php   Download  
File: example/autoloader.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Move Me GIF
Create animated GIF images in pure PHP
Author: By
Last change:
Date: 8 years ago
Size: 225 bytes
 

Contents

Class file image Download
<?php

/**
 * @author Patrick van Bergen
 */

spl_autoload_register(function($class) {

   
$path = __DIR__ . '/' . str_replace('\\', '/', $class) . '.php';

    if (
file_exists($path)) {
        require_once
$path;
    }
});