Learn, Share, Build

October 12, 2017, at 5:19 PM

Is it possible in php not to display "Parse" error on a web page (more like hiding all error including parse error on a production environment)?

error_reporting(E_ALL | E_STRICT);
ini_set('display_errors', 0);
ini_set('log_errors', 1);
ini_set('log_errors_max_len', 0);

I tried the above setting but could not hide the parse error.

Example of parse error I triggered

if (TRUE) {
  echo 'fail';
Answer 1

Set display_errors = Off in your php.ini file. That's the only way to reliably do this, and should be the default in any production environment anyway.

Using ini_set('display_errors', 0) doesn't work, because that's executed in runtime, after parsing.

Learn, Share, Build

Learn, Share, Build

I can't understand this errorI tried all things but can't solve this

Learn, Share, Build

Learn, Share, Build

I am using queue function of laravel to send emailBut I think it is not working because it slow down the page process when sending large emails and do data is being saved in jobs table

Learn, Share, Build

Learn, Share, Build

I am trying to hit my login details to server directly instead of hitting DBPlease help me how to do this

Learn, Share, Build

Learn, Share, Build

In my table have following structure