我无法理解PHP的动态结构。我不太了解PHP,但我知道如何编写JavaScript,HTML和CSS代码。
我帮助管理的网站有适合Mac的环境。我至少不是Mac用户,并且知道如何启动并运行该网站的本地实例。
尝试使用Vagrant,得到它并没有很多教程告诉我它是如何完成的,所以我使用PhpStorm来运行服务器然后我不断在这个文件的第21行得到这个错误。
我试图找到我指向系统目录的位置并找到我所拥有的autoload.php
文件。但最初在Mac上创建非常困难。
这是错误:
Warning: require(D:\Vagrant
project\compasshb.com\public/boostrap/autoload.php): failed to open stream:
No such file or directory in D:\Vagrant
project\compasshb.com\public\index.php on line 22
Fatal error: require(): Failed opening required 'D:\Vagrant
project\compasshb.com\public/boostrap/autoload.php'
(include_path='.;C:\php\pear') in D:\Vagrant
project\compasshb.com\public\index.php on line 22
对我毫无意义。 这是index.php中的第22行:
<?php
/**
* Laravel - A PHP Framework For Web Artisans.
*
* @author Taylor Otwell <taylorotwell@gmail.com>
*/
/*
|--------------------------------------------------------------------------
| Register The Auto Loader
|--------------------------------------------------------------------------
|
| Composer provides a convenient, automatically generated class loader for
| our application. We just need to utilize it! We'll simply require it
| into the script here so that we don't have to worry about manual
| loading any of our classes later on. It feels nice to relax.
|
*/
require __DIR__.'/boostrap/autoload.php';
/*
|--------------------------------------------------------------------------
| Turn On The Lights
|--------------------------------------------------------------------------
|
| We need to illuminate PHP development, so let us turn on the lights.
| This bootstraps the framework and gets it ready for use, then it
| will load up this application so that we can run it and send
| the responses back to the browser and delight our users.
|
*/
$app = require_once __DIR__.'/../bootstrap/app.php';
/*
|--------------------------------------------------------------------------
| Run The Application
|--------------------------------------------------------------------------
|
| Once we have the application, we can handle the incoming request
| through the kernel, and send the associated response back to
| the client's browser allowing them to enjoy the creative
| and wonderful application we have prepared for them.
|
*/
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
$response = $kernel->handle(
$request = Illuminate\Http\Request::capture()
);
$response->send();
$kernel->terminate($request, $response);