Login   Register  
PHP Classes
elePHPant
Icontem

File: examples/autoload.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Tufan Baris YILDIRIM  >  Apk Parser  >  examples/autoload.php  >  Download  
File: examples/autoload.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Apk Parser
Extract Application Package files in APK format
Author: By
Last change: loader fix for phpunit, whitespace
Date: 29 days ago
Size: 268 bytes
 

Contents

Class file image Download
<?php
spl_autoload_register
(function($className){
    
// Fix for OSX and *nix
    
$className str_replace('\\'DIRECTORY_SEPARATOR$className);
    include ( 
dirname(__FILE__).DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'lib'.DIRECTORY_SEPARATOR$className ".php");
});