처음에는 죄송 합니다만, 정말 큰 초심자인데, 그렇게 느껴지신다면이 질문에 투표하실 수 있습니다.FuelPHP은 (는) 공중에서 URL을 제거합니다.
그래서 많은 튜토리얼을 살펴 보았습니다. 나에게 맞는 것은 공용 폴더 콘텐츠를 가져 오는 것입니다.
그리고 문제는 많은 오류가 발생합니다.
오류 :
Warning: require(\bootstrap.php) [function.require]: failed to open stream: No such file or directory in C:\EasyPHP\www\fuelphp\index.php on line 33
Fatal error: require() [function.require]: Failed opening required '\bootstrap.php' (include_path='.;C:\php\pear') in C:\EasyPHP\www\fuelphp\index.php on line 33
은 그래서 DOCROOT이
C:\EasyPHP\www\fuelphp\
것을 발견, 그래서 난 로컬 호스트/fuelphp/연료/코어
원래의 색인이
처럼 보이는이 방법으로 물건을 당겨야합니다 이 ,563에 수정보다<?php
/**
* Set error reporting and display errors settings. You will want to change these when in production.
*/
error_reporting(-1);
ini_set('display_errors', 1);
/**
* Website document root
*/
define('DOCROOT', __DIR__.DIRECTORY_SEPARATOR);
/**
* 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';
// Generate the request, execute it and send the output.
try
{
$response = Request::forge()->execute()->response();
}
catch (HttpNotFoundException $e)
{
$route = array_key_exists('_404_', Router::$routes) ? Router::$routes['_404_']->translation : Config::get('routes._404_');
if ($route)
{
$response = Request::forge($route)->execute()->response();
}
else
{
throw $e;
}
}
// This will add the execution time and memory usage to the output.
// Comment this out if you don't use it.
$bm = Profiler::app_total();
$response->body(
str_replace(
array('{exec_time}', '{mem_usage}'),
array(round($bm[0], 4), round($bm[1]/pow(1024, 2), 3)),
$response->body()
)
);
$response->send(true);
43,210
이제 대중은 URL에없는,하지만 난이 사이트를 열 때 오류의 무리를 받고 메신저, 나는 백 슬래시 UTS 슬래시의 insted 볼 수 있지만, 캔트 정말 문제
Warning: require_once(fuel/core/classes\error.php) [function.require-once]: failed to open stream: No such file or directory in C:\EasyPHP\www\fuelphp\fuel\core\base.php on line 25
Fatal error: require_once() [function.require]: Failed opening required 'fuel/core/classes\error.php' (include_path='.;C:\php\pear') in C:\EasyPHP\www\fuelphp\fuel\core\base.php on line 25
을 찾을 수
누군가가 인덱스를 수정하는 방법에 대한 힌트를 모든 사람에게 알릴 수 있습니까?
는
루트에 htaccess로 추가 지금 잘 작동, 마지막 질문은이 htaccess로를 사용하는 것이 안전합니다? 왜냐하면 이제는 http : // localhost/fueljob/그리고 http : // localhost/fueljob/public에이 방법으로 액세스 할 수 있기 때문에 이것이 문제가되지 않기 때문입니까? – Side
그건 문제가 아니에요. 후자의 URL을 통해 .htaccess를 사용하여 액세스 할 때 액세스를 거부 할 수 있습니다. 정말로 원했지만 문제가 아니며 사용하는 것이 안전하다고 말할 수 있습니다. –
도움을 주셔서 대단히 감사합니다. – Side