[Mini-Release]Hides Web Errors~~

Joined
Aug 12, 2009
Messages
1,810
Reaction score
607
Well, am into web developments now and
You guys know these errors in wamp

Notice: Undefined index: __ in C:\wamp\www\___.php on line __
Well instead of hiding those errors with
Wampserver -> php -> PHP setting -> Display Errors
Add this to your web config since most
files need Config.php
add this

PHP:
<?php
error_reporting
(E_ALL ^ E_NOTICE);
?>
and all those dams errors are gone :)
Its just a mini release xD
FYI:It blocks ALL the errors
 
Last edited:
LOL, why would you say "nice" for this? He did no coding at all, it's a built in PHP function -_- It's like me saying [Mini-Release] How to make text show in php:

print "text"; or echo "text";

well all i wanted is to hide them cuase i seen them in every single dam cms there is idk on cype tho

Cype already has notice reporting disabled using this.


BTW: [Hiero's Mini Release] Disable ALL Error reporting instead of just notices!

Code:
error_reporting(0);

I so pro 8)
 
Last edited:
Maybe someone needs to learn PHP so the notices don't show up at all.
quoted for the truth
well all i wanted is to hide them cuase i seen them in every single dam cms there is idk on cype tho
if your into web programming, you would work to fix those errors
LOL, why would you say "nice" for this? He did no coding at all, it's a built in PHP function -_- It's like me saying [Mini-Release] How to make text show in php:

print "text"; or echo "text";



Cype already has notice reporting disabled using this.


BTW: [Hiero's Mini Release] Disable ALL Error reporting instead of just notices!

Code:
error_reporting(0);
I so pro 8)
ur so pro 8)
ORRRRRRRR
There's an option in PHP.ini as well xD
for those that dont know why not tell them before they start changing everything inside their ini file and screw everything up.
 
omfg thanks so much for a line of code which every decent php programmer already knows. nice try, but try harder next time mate.
 
Back