PHP 8.2.32
Preview: index.php Size: 1.69 KB
/home/ecopackply/www/demo/public/index.php

<?php

use CodeIgniter\Boot;
use Config\Paths;

/*
 *---------------------------------------------------------------
 * CHECK PHP VERSION
 *---------------------------------------------------------------
 */

$minPhpVersion = '8.1'; // If you update this, don't forget to update `spark`.
if (version_compare(PHP_VERSION, $minPhpVersion, '<')) {
    $message = sprintf(
        'Your PHP version must be %s or higher to run CodeIgniter. Current version: %s',
        $minPhpVersion,
        PHP_VERSION,
    );

    header('HTTP/1.1 503 Service Unavailable.', true, 503);
    echo $message;

    exit(1);
}

/*
 *---------------------------------------------------------------
 * SET THE CURRENT DIRECTORY
 *---------------------------------------------------------------
 */

// Path to the front controller (this file)
define('FCPATH', __DIR__ . DIRECTORY_SEPARATOR);

// Ensure the current directory is pointing to the front controller's directory
if (getcwd() . DIRECTORY_SEPARATOR !== FCPATH) {
    chdir(FCPATH);
}

/*
 *---------------------------------------------------------------
 * BOOTSTRAP THE APPLICATION
 *---------------------------------------------------------------
 * This process sets up the path constants, loads and registers
 * our autoloader, along with Composer's, loads our constants
 * and fires up an environment-specific bootstrapping.
 */

// LOAD OUR PATHS CONFIG FILE
// This is the line that might need to be changed, depending on your folder structure.
require FCPATH . '../app/Config/Paths.php';
// ^^^ Change this line if you move your application folder

$paths = new Paths();

// LOAD THE FRAMEWORK BOOTSTRAP FILE
require $paths->systemDirectory . '/Boot.php';

exit(Boot::bootWeb($paths));

Directory Contents

Dirs: 3 × Files: 11

Name Size Perms Modified Actions
css DIR
- drwxr-xr-x 2026-01-24 07:56:18
Edit Download
js DIR
- drwxr-xr-x 2026-01-24 07:56:33
Edit Download
uploads DIR
- drwxr-xr-x 2026-01-24 07:56:36
Edit Download
444 B lrw-r--r-- 2026-01-27 08:03:35
Edit Download
5.30 KB lrw-r--r-- 2026-01-24 07:55:58
Edit Download
182.12 KB lrw-r--r-- 2026-01-24 07:56:02
Edit Download
1.69 KB lrw-r--r-- 2026-01-24 07:56:01
Edit Download
826.69 KB lrw-r--r-- 2026-01-24 07:56:06
Edit Download
155.97 KB lrw-r--r-- 2026-01-24 07:56:06
Edit Download
25 B lrw-r--r-- 2026-01-24 07:56:08
Edit Download
97.54 KB lrw-r--r-- 2026-01-24 07:56:09
Edit Download
661.11 KB lrw-r--r-- 2026-01-24 07:56:13
Edit Download
832.63 KB lrw-r--r-- 2026-01-24 07:56:13
Edit Download
811.40 KB lrw-r--r-- 2026-01-24 07:56:17
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).