PHP Classes
elePHPant
Icontem

File: src/autoload.php

Recommend this page to a friend!
  Classes of Subin Siby  >  Secure PHP Login System  >  src/autoload.php  >  Download  
File: src/autoload.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Secure PHP Login System
Register and login users using a database via PDO
Author: By
Last change:
Date: 1 year ago
Size: 222 bytes
 

Contents

Class file image Download
<?php
/**
 * Francium classes autoloader
 */

spl_autoload_register(
    function (
$class ) {
       
$file = __DIR__ . '/' . str_replace( '\\', '/', $class ) . '.php';

        if (
file_exists( $file ) ) {
            require
$file;
        }
    }
);