0

Can't seem to figure this one out.

I have a warning I want to supress. No problem with: error_reporting(E_ERROR | E_PARSE) But when I make an ajax request that loads some data, and that data generates that warning I want to supress, it shows up in my injected code.

So my question, is there a way to supress those warnings?

Vespan
  • 3
  • 1

1 Answers1

0

use exceptions

<?php

try{
   // YOUR LOGIC GOES HERE
} catch(Exception $ex) {
  // YOUR LOGIC GOES HERE
}

?>
Anto S
  • 2,448
  • 6
  • 32
  • 50