Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 5c60b979db
Fetching contributors…

Cannot retrieve contributors at this time

executable file 51 lines (39 sloc) 1.203 kb
* Refuse to run oil when called from php-cgi !
if (substr(php_sapi_name(), 0, 3) == 'cgi')
die("The use of oil is not supported when running php-cgi. Oil needs php-cli to function!\n\n");
* Set error reporting and display errors settings. You will want to change these when in production.
ini_set('display_errors', 1);
* Website document root
* Path to the application directory.
define('APPPATH', realpath(__DIR__.'/fuel/app/').DIRECTORY_SEPARATOR);
* Path to the default packages directory.
define('PKGPATH', realpath(__DIR__.'/fuel/packages/').DIRECTORY_SEPARATOR);
* The path to the framework core.
define('COREPATH', realpath(__DIR__.'/fuel/core/').DIRECTORY_SEPARATOR);
// Get the start time and memory for use later
defined('FUEL_START_TIME') or define('FUEL_START_TIME', microtime(true));
defined('FUEL_START_MEM') or define('FUEL_START_MEM', memory_get_usage());
// Boot the app
require APPPATH.'bootstrap.php';
// Fire up the command line interfact
echo PHP_EOL;
/* End of file oil */
Jump to Line
Something went wrong with that request. Please try again.