Quick Question

Twinkie

Banned
Messages
1,389
Reaction score
12
Points
0
Is there a function that logs a PHP error, without alerting the user or without creating a new log. I didn't find what I was looking for in the PHP function list, so could someone help me out?
 

Sohail

Active Member
Messages
3,055
Reaction score
0
Points
36
You can get a script that does that though can't you?
 

Twinkie

Banned
Messages
1,389
Reaction score
12
Points
0
Yes, I can. I thought there was a built in function that would do that for me without having to create an error log and save me the trouble. Thanks anyway. The @ symbol stops in an expression such as ($file = @fopen($filename)) and error and does not log it. Congrats sohailamir52 for becoming a moderator, I envy you :p
 
Last edited:

MasterMax1313

New Member
Messages
84
Reaction score
0
Points
0
unless i'm mistaken there might be something like that with the try catch system. I've seen a little bit of this, like i'm pretty sure that there is a way to get the specific mysql error code and info from that, but as for errors in a function, i think try catch might be your best solution, and maybe toss an error message into a database table or log file.
 
Top