【发布时间】:2018-08-23 11:26:39
【问题描述】:
我是 laravel 的新手。我的朋友给了我一个项目来研究,但是当我在本地主机上设置该项目时,我收到了一些错误。谁能帮我在我的电脑上设置那个项目。 我上传了服务器文件代码[在此处输入图片描述][1]
**
错误:警告:require_once(C:\wamp64\www\hazir/public/index.php):无法打开流:C:\wamp64\www\hazir\server 中没有这样的文件或目录。第 21 行的 php 致命错误:require_once(): 无法在 C:\wamp64\ 中打开所需的 'C:\wamp64\www\hazir/public/index.php' (include_path='.;C:\php\pear') www\hazir\server.php 第 21 行
**
<?php
/**
* Laravel - A PHP Framework For Web Artisans
*
* @package Laravel
* @author Taylor Otwell <taylor@laravel.com>
*/
$uri = urldecode(
parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)
);
// This file allows us to emulate Apache's "mod_rewrite" functionality from the
// built-in PHP web server. This provides a convenient way to test a Laravel
// application without having installed a "real" web server software here.
if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) {
return false;
}
require_once __DIR__.'/public/index.php';
【问题讨论】:
-
错误代码是什么?看不到图片
-
警告:require_once(C:\wamp64\www\hazir/public/index.php):无法打开流:C:\wamp64\www\hazir\server 中没有这样的文件或目录。第 21 行的 php 致命错误:require_once(): 无法在 C:\wamp64\ 中打开所需的 'C:\wamp64\www\hazir/public/index.php' (include_path='.;C:\php\pear') www\hazir\server.php 第 21 行
-
错误信息对我来说看起来很直接!
C:\wamp64\www\hazir/public/index.php有文件吗?