Welcome Guest, Not a member yet? Register   Sign In
PHP error handling security
#5

(12-20-2015, 02:41 AM)acemary Wrote: Hello There!
Very good article but still I am Unable to understand Exceptions
I got every bit of ErrorHandling but I am getting to Understand Exceptions.
Please if anybody can help me in Understanding PHP exception.I searched through google alot for this but none of them are quite able to help me in completely understanding it.
even if you have a useful resource please provide link plz share it for me.
Any help in this matter will be apreciated alot.
Accept my thanks in Advance.....   http://www.besanttechnologies.com/traini...in-chennai  |  http://www.besanttechnologies.com/traini...g-training

I found a solution for you,
This solution is not pre-defined by php.
I write some custom code in Exceptions.php, and i found this problem is gone, may be this will help you.

1. First you need to open system/core/Exceptions.php
2. In here you find a function called "show_php_error".
3. You need to put some line of code in top of the function.
Code: 
if( strpos($message, 'called in') ){
                $server  = str_replace(array( '/', '\\' ), array( '\\', '\\' ), $_SERVER[ 'DOCUMENT_ROOT' ]);
                $message = str_replace($server, '', $message);
            }
Your problem will solve.
Reply me in my email if your problem is solved.
[email protected]

Attached Files Thumbnail(s)
   
Reply


Messages In This Thread
RE: PHP error handling security - by Narf - 11-13-2015, 11:35 AM
RE: PHP error handling security - by kenjis - 11-13-2015, 03:32 PM
RE: PHP error handling security - by acemary - 12-20-2015, 02:41 AM
RE: PHP error handling security - by dibyendudas - 12-20-2015, 08:59 AM
RE: PHP error handling security - by InsiteFX - 12-21-2015, 01:43 PM
RE: PHP error handling security - by amargow - 09-12-2018, 12:09 AM



Theme © iAndrew 2016 - Forum software by © MyBB