PHP Classes

File: examples/runfirst.php

Recommend this page to a friend!
  Classes of Jorge Castro   PHP AutoLoad One   examples/runfirst.php   Download  
File: examples/runfirst.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP AutoLoad One
Generate scripts to autoload classes of a project
Author: By
Last change:
Date: 4 years ago
Size: 935 bytes
 

Contents

Class file image Download
<?php
// This code will generate the file autoload.php

use eftec\AutoLoadOne\AutoLoadOne;

@
ini_set('max_execution_time', 300);


define("_AUTOLOAD_SELFRUN",false);
define("_AUTOLOAD_ONLYCLI",false);
define("_AUTOLOAD_ENTER",false);
echo
"<h1>Test</h1>It's an interactive test.";
echo
"It will generate the file autoload.php of this folder<br>";
echo
"And, when you are ready, you could test the result on <a href='runtest.php'>runtest.php</a><br>";
echo
"The user and password is autoloadone/autoloadone<hr>";
include
"../AutoLoadOne.php";
$auto=new AutoLoadOne();
$auto->extension='.php'; // it's not required. By default it's .php
$auto->rooturl=__DIR__; // this default value is optional, it's only for the example
$auto->fileGen=__DIR__; // this default value is optional, it's only for the example
$auto->savefile=1; // this default value is optional, it's only for the example
$auto->init();
$auto->process();
$auto->render();