I can say that PHP does NOT display the full file path with an error in error messages, warnings or notifications. I know that I can disable errors; But to avoid risk.
For example: My script returns an error, which is displayed as follows:
Fatal error: Call to undefined function shell_exec1() in /home/[user]/public_html/index.php on line 1
I want to display it as
Fatal error: Call to undefined function shell_exec1() in ~/index.php on line 1
Thus, it will be safer to display error messages without exposing the full file path to the bad guys.
Is it possible? How?
aceph source
share