Disable (hiding) absolute path which appears with php errors

hackboys

Active Member
Feb 12, 2008
34
2
58
Hello.

Is there anyway to disable absolute path which appears with php errors.

i.e.

/home/username/public_html/myscriptfolder/index.php on line 159

I don't want php shows errors absolute path "/home/username/public_html/".

With apache possible disable absolute path which appears with php errors?
 

Infopro

Well-Known Member
May 20, 2003
17,112
513
613
Pennsylvania
cPanel Access Level
Root Administrator
Twitter
In WHM type in PHP in top search box, click in result, PHP Configuration Editor. Click Advanced Mode at top of page. Search page with your browser for, display_errors change as needed, scroll down and click save, wait for page to finish loading.

I think that's what you're looking for.