When I have a php error it will go through like 5 folders to get to my file. For example:
home\admin\domain.com\folder\portfolio
What .htaccess attribute do I need to prevent it from showing the first 2 folders(home\admin)?
I don’t want end users to see the first 2 folders in my directory since they’re not used often anyway. So for the most part I want to hide “home\admin” for security purposes.
To answer the question
You have to change your apache configuration and change to directory root of your website because php will always report the full path ( except if you can set a chroot/jail environment )
Additional explanations about the question : http://discussion.dreamhost.com/thread-45191.html
But it is better to hide the errors from being displayed as it show some vital information about your setup ( not just the /home/admin ) part.
To hide the errors, you can set display_errors to off.
See http://www.php.net/manual/en/errorfunc.configuration.php#ini.display-errors