Home > database >  display errors function is not showing php
display errors function is not showing php

Time:10-05

I have server on centos system. Has php 7.4, apache version and also laravel project on it. And when i go to my site it gives me blank page. So i think it can't to show php error codes. I need your help.

CodePudding user response:

Although your question lacks adequate information, you can achieve what you desire in two ways.

  1. Via php.ini file

open your php.ini file and look for this line: display_errors = off and change it to display_errors = on

  1. Via your php file

In your php file just add these lines to the top:

ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);

CodePudding user response:

Please share some more details of what you actually want to do so i can help you out ...

  • Related