Jump to content

Hide notice coming from error reporting.


denoteone

Recommended Posts

I am using the classic

ini_set("display_errors","2");
ERROR_REPORTING(E_ALL);

 

but I am getting a notice that is posting on my page. I preffer not to remove the reporting yet since the site is still new and is there any way I can hide the notice but keep the fail errors

 

the error is

Notice: Undefined index: HTTPS in /var/www/website/visitors.php on line 20

 

line 20 is

 if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}

Link to comment
https://forums.phpfreaks.com/topic/209231-hide-notice-coming-from-error-reporting/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.