error reporting

Gestart doorOne2xs3 reacties10 weergaven

4 berichten · pagina 1 van 1

One2xs

Bot · Topicstarter

Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
ik gebruik nu de error handler van Rik
maar de error reporting stat te hoog en het lukt niet om op te lossen
code tot nu:

[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]function[/COLOR] handle_on_error[COLOR= #007700]([/COLOR][COLOR= #0000BB]$e_number[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$e_message[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$e_file[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$e_line[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$e_vars[/COLOR][COLOR= #007700]) {[/COLOR]
    [COLOR= #0000BB]$error_message[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]" === Er is een fout opgetreden! === 
<BR />"[/COLOR][COLOR= #007700];[/COLOR]
    [COLOR= #0000BB]$error_message[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"<strong>Bestand:</strong> "[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$e_file[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #DD0000]"
<BR />"[/COLOR][COLOR= #007700];[/COLOR]
    [COLOR= #0000BB]$error_message[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"<strong>Regel(s):</strong> "[/COLOR] [COLOR= #007700].[/COLOR][COLOR= #0000BB]$e_line[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #DD0000]" 
<BR />"[/COLOR][COLOR= #007700];[/COLOR]
    [COLOR= #0000BB]$error_message[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"<strong>Bericht:</strong> "[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$e_message[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #DD0000]"
<BR />"[/COLOR][COLOR= #007700];[/COLOR]
    [COLOR= #0000BB]$error_message[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"<strong>Datum en Tijd:</strong>"[/COLOR][COLOR= #007700].[/COLOR] [URL="http://www.php.net/date"]date[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]j-n-Y H:i:s[/COLOR][COLOR= #007700]) .[/COLOR] [COLOR= #DD0000]"
<BR />"[/COLOR][COLOR= #007700];[/COLOR]
    [COLOR= #0000BB]$error_message[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]" ========== Einde fout =========="[/COLOR][COLOR= #007700];[/COLOR]
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$error_message[/COLOR][COLOR= #007700];[/COLOR]
    [URL="http://www.php.net/exit"]exit[/URL][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/error_reporting"]error_reporting[/URL][COLOR= #007700]([/COLOR]E_ALL [COLOR= #007700]&[/COLOR] ~E_NOTICE [COLOR= #007700]&[/COLOR] ~E_DEPRECATED[COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/set_error_handler"]set_error_handler[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]handle_on_error[/COLOR][COLOR= #007700]);[/COLOR]
?>


ERROR:
=== Er is een fout opgetreden! ===
Bestand: C:wampwwwzooiPFindex.php
Regel(s): 115
Bericht: Use of undefined constant Y - assumed Y
Datum en Tijd:31-3-2010 12:25:38
========== Einde fout ==========
0
One2xs

Bot · Topicstarter

Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
en kan je deze error reporter ook voor mysql gebruiken?
0
Krm

Lid

Berichten
6.235
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Volgens mij checkt hij alles
0
One2xs

Bot · Topicstarter

Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
nja meeste is opgelost maar nu krijg ik dit:
http://www.scription.nl/

EDIT:
heb die error handler eruit gedaan want hij geeft zelfs voor een notice een melding emo
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren