2017-07-25 04:47:15 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Instructions on shared hosting...
|
|
|
|
* Assuming you have a structure like this:
|
|
|
|
* /home/your_user
|
|
|
|
* /public_html
|
|
|
|
* /public_ftp
|
|
|
|
*
|
|
|
|
* Place your PHPVMS folder so it's on the same level
|
|
|
|
* as public_html, so it looks like:
|
|
|
|
*
|
|
|
|
* /home/your_user
|
|
|
|
* /public_html
|
|
|
|
* /public_ftp
|
|
|
|
* /phpvms
|
|
|
|
*
|
|
|
|
* Follow these steps:
|
|
|
|
*
|
|
|
|
* 1. Copy everything from the phpvms/public folder into
|
|
|
|
* public_html/
|
|
|
|
* 2. Rename this file (index_sharedhosting.php) to index.php
|
|
|
|
* 3. ???
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
require __DIR__.'/../../bootstrap/autoload.php';
|
|
|
|
|
2017-07-25 23:03:00 +08:00
|
|
|
$app = require_once __DIR__.'/../phpvms/bootstrap/app.php';
|
2017-07-25 04:47:15 +08:00
|
|
|
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
|
|
|
|
|
|
|
|
$response = $kernel->handle(
|
|
|
|
$request = Illuminate\Http\Request::capture()
|
|
|
|
);
|
|
|
|
|
|
|
|
$response->send();
|
|
|
|
|
|
|
|
$kernel->terminate($request, $response);
|