php jxc2.0.1,index.php

该博客主要介绍了如何设置PHP环境,包括设置默认时区、禁用错误报告、定义应用程序路径等。然后,它详细阐述了CodeIgniter框架的启动过程,包括加载核心文件、定义常量和启动框架本身。此内容对于PHP开发者理解和配置CodeIgniter项目至关重要。
摘要由CSDN通过智能技术生成

header('Content-Type: text/html; charset=utf-8');

date_default_timezone_set('Asia/Shanghai');

set_time_limit(0);

define('ENVIRONMENT', 'development');

if (defined('ENVIRONMENT')) {

switch (ENVIRONMENT) {

case 'development':

error_reporting(E_ALL);

break;

case 'testing':

case 'production':

error_reporting(0);

break;

default:

exit('The application environment is not set correctly.');

}

}

$system_path = 'system';

$application_folder = 'application';

if (defined('STDIN')) {

chdir(dirname(__FILE__));

}

if (realpath($system_path) !== FALSE) {

$system_path = realpath($system_path).'/';

}

$system_path = rtrim($system_path, '/').'/';

if ( ! is_dir($system_path)) {

exit("Your system folder path does not appear to be set correctly. Please open the following file and correct this: ".pathinfo(__FILE__, PATHINFO_BASENAME));

}

define('SELF', pathinfo(__FILE__, PATHINFO_BASENAME));

define('EXT', '.php');

define('BASEPATH', str_replace("\\", "/", $system_path));

define('FCPATH', str_replace(SELF, '', __FILE__));

define('SYSDIR', trim(strrchr(trim(BASEPATH, '/'), '/'), '/'));

if (is_dir($application_folder)) {

define('APPPATH', $application_folder.'/');

} else {

if ( ! is_dir(BASEPATH.$application_folder.'/')) {

exit("Your application folder path does not appear to be set correctly. Please open the following file and correct this: ".SELF);

}

define('APPPATH', BASEPATH.$application_folder.'/');

}

define('JXC_VERSION', 'jxc 2.0.1');

require_once BASEPATH.'core/CodeIgniter.php';

/* End of file index.php */

/* Location: ./index.php */

一键复制

编辑

Web IDE

原始数据

按行查看

历史

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值