Notice: date_default_timezone_set(): Timezone ID '' is invalid inC:\xampp\htdocs\index.phpon line68
Notice: Undefined variable: config inC:\xampp\htdocs\index.phpon line71 Template could not be loaded. Err code: 135604042010
No meu index php está assim
<?php
session_start();
ob_start();
$start = microtime(true);
require("config.php");
if($config['server_name'] == "%SERVER_NAME%") {
header("Location: install/");
exit;
}
if(USING_WINDOWS && $config['engine']['loadManagement'])
exit("Load management is not available on Windows. Please switch it off in config.php");
else if(USING_WINDOWS == 0 && $config['engine']['loadManagement']) {
$process = sys_getloadavg();
if ($process[0] > $config['engine']['maxLoad']) {
header('HTTP/1.1 503 Too busy, try again later');
die('IDE Dropped connection with you. The server is too busy. Please try again later.');
}
}
/*
|---------------------------------------------------------------
| PHP ERROR REPORTING LEVEL
|---------------------------------------------------------------
|
| By default CI & IDE runs with error reporting set to ALL. For security
| reasons you are encouraged to change this when your site goes live.
| For more info visit: http://www.php.net/error_reporting
|
*/
error_reporting(E_ALL);
/*
|---------------------------------------------------------------
| SYSTEM FOLDER NAME
|---------------------------------------------------------------
|
| This variable must contain the name of your "system" folder.
| Include the path if the folder is not in the same directory
| as this file.
|
| NO TRAILING SLASH!
|
*/
$system_folder = "system";
/*
|---------------------------------------------------------------
| APPLICATION FOLDER NAME
|---------------------------------------------------------------
|
| If you want this front controller to use a different "application"
| folder then the default one you can set its name here. The folder
| can also be renamed or relocated anywhere on your server.
|
|
| NO TRAILING SLASH!
|
*/
$application_folder = "application";
/*
| Define template name
*/
$template = $config['layout'];
/* Full website address including HTTP:// Without slash at the end! */
$website = $config['website'];
/* Default time zone for the server must be set here. */
date_default_timezone_set($config['timezone']);
/* Set the default title of a website. */
$title = $config['title'];
/*
|===============================================================
| END OF USER CONFIGURABLE SETTINGS
|===============================================================
*/
require("system/api.php");
if(!DEFINED("API_KEY") or !DEFINED("API_PASS"))
exit("This server does not have API_KEY or API_PASS set properly. If you are administrator of this server check the system/api.php in order to set the right properties, or try reinstalling this system. Err code: 150024042010");
require("system/version.php");
if(!DEFINED("VERSION"))
exit("This server has not specified version of running system. If you are administrator of this server check the system/version.php file or download & install new version of this system. Err code: 154124042010");
/*
Gostaria que me dessem uma luz, desde já agradeço.
Pergunta
Adriel Henrique
Olá, boa tarde ,sou novo nessa área e estou com alguns problemas quando acesso o localhost do xamp aparece isto
Notice: Undefined variable: config in C:\xampp\htdocs\index.php on line 6
Notice: Use of undefined constant USING_WINDOWS - assumed 'USING_WINDOWS' in C:\xampp\htdocs\index.php on line 10
Notice: Undefined variable: config in C:\xampp\htdocs\index.php on line 10
Notice: Use of undefined constant USING_WINDOWS - assumed 'USING_WINDOWS' in C:\xampp\htdocs\index.php on line 12
Notice: Undefined variable: config in C:\xampp\htdocs\index.php on line 12
Notice: Undefined variable: config in C:\xampp\htdocs\index.php on line 62
Notice: Undefined variable: config in C:\xampp\htdocs\index.php on line 65
Notice: Undefined variable: config in C:\xampp\htdocs\index.php on line 68
Notice: date_default_timezone_set(): Timezone ID '' is invalid in C:\xampp\htdocs\index.php on line 68
Notice: Undefined variable: config in C:\xampp\htdocs\index.php on line 71
Template could not be loaded. Err code: 135604042010
No meu index php está assim
<?php
session_start();
ob_start();
$start = microtime(true);
require("config.php");
if($config['server_name'] == "%SERVER_NAME%") {
header("Location: install/");
exit;
}
if(USING_WINDOWS && $config['engine']['loadManagement'])
exit("Load management is not available on Windows. Please switch it off in config.php");
else if(USING_WINDOWS == 0 && $config['engine']['loadManagement']) {
$process = sys_getloadavg();
if ($process[0] > $config['engine']['maxLoad']) {
header('HTTP/1.1 503 Too busy, try again later');
die('IDE Dropped connection with you. The server is too busy. Please try again later.');
}
}
/*
|---------------------------------------------------------------
| PHP ERROR REPORTING LEVEL
|---------------------------------------------------------------
|
| By default CI & IDE runs with error reporting set to ALL. For security
| reasons you are encouraged to change this when your site goes live.
| For more info visit: http://www.php.net/error_reporting
|
*/
error_reporting(E_ALL);
/*
|---------------------------------------------------------------
| SYSTEM FOLDER NAME
|---------------------------------------------------------------
|
| This variable must contain the name of your "system" folder.
| Include the path if the folder is not in the same directory
| as this file.
|
| NO TRAILING SLASH!
|
*/
$system_folder = "system";
/*
|---------------------------------------------------------------
| APPLICATION FOLDER NAME
|---------------------------------------------------------------
|
| If you want this front controller to use a different "application"
| folder then the default one you can set its name here. The folder
| can also be renamed or relocated anywhere on your server.
|
|
| NO TRAILING SLASH!
|
*/
$application_folder = "application";
/*
| Define template name
*/
$template = $config['layout'];
/* Full website address including HTTP:// Without slash at the end! */
$website = $config['website'];
/* Default time zone for the server must be set here. */
date_default_timezone_set($config['timezone']);
/* Set the default title of a website. */
$title = $config['title'];
/*
|===============================================================
| END OF USER CONFIGURABLE SETTINGS
|===============================================================
*/
require("system/api.php");
if(!DEFINED("API_KEY") or !DEFINED("API_PASS"))
exit("This server does not have API_KEY or API_PASS set properly. If you are administrator of this server check the system/api.php in order to set the right properties, or try reinstalling this system. Err code: 150024042010");
require("system/version.php");
if(!DEFINED("VERSION"))
exit("This server has not specified version of running system. If you are administrator of this server check the system/version.php file or download & install new version of this system. Err code: 154124042010");
/*
Gostaria que me dessem uma luz, desde já agradeço.
Link para o comentário
Compartilhar em outros sites
1 resposta a esta questão
Posts Recomendados
Participe da discussão
Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.