shows define('LARAVEL_START', microtime(true)) - when i migrate php version to 7.3

半世苍凉 提交于 2021-01-28 05:09:34

问题


I got following Message(Access Home Page of Applications) when I update my Development Environment to PHP 7.3

*/ 

  define('LARAVEL_START', microtime(true)); 

/* 
|-------------------------------------------------------------------------- 
| 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);

How to handle this?


回答1:


Its a PHP 7.3 Installation Issue. I reinstalled it has been fixed.




回答2:


Some part of the script is missing, but it seems that your php files are treated like text! Check your server settings after upgrading to php 7.3. I guess that the problem is with any php script




回答3:


If you're seeing code in the browser, you don't have PHP installed correctly

You can check PHP version is installed or not in your local computer using the Command Prompt php -v



来源:https://stackoverflow.com/questions/55487812/shows-definelaravel-start-microtimetrue-when-i-migrate-php-version-to-7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!