PHP Classes
elePHPant
Icontem

File: autoload.php

Recommend this page to a friend!
  Classes of Josť Quijado  >  PHP Directory Compress Recursive  >  autoload.php  >  Download  
File: autoload.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP Directory Compress Recursive
Create ZIP file with all the files of a directory
Author: By
Last change:
Date: 5 months ago
Size: 319 bytes
 

Contents

Class file image Download
<?php
    define
('ROOT', dirname(__FILE__));
   
define ('DS', DIRECTORY_SEPARATOR);
 
   
spl_autoload_register('autoload');
 
    function
autoload($script)
    {
        if (
$script == 'ZipArchive') return;
       
$script = ROOT.DS."vendor".DS."classes".DS.str_replace("\\", DS, $script).'.php';
        include_once (
$script);
    }
?>