enable PHP errors with htaccess?

I have a PHP script that works fine on my development server but not with my production server that's hosted somewhere else.
The problem is I don't get an error message so I suspect my hosting company has disabled error messages for security reasons.
I would like to enable the PHP error messages on a specific folder with htaccess.  How do I do this if possible?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Place the following in your htaccess file

php_value error_reporting 2047

This will set your error reporting to E_ALL. You can also do this per-script using <? error_reporting("E_ALL"); ?>

The htaccess options are not available to PHP-as-CGI users, so be mindful of that limitation as well - I was stuck on that one for a while.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Well, what DrNikon224 suggest is not the only what you have to do.
I guess that hoster also set "display_errors = off"
So your .htaccess has to be like this:
php_value error_reporting 2047
php_flag display_errors 1

Or you can set it inn the begining of your scripts
ini_set('error_reporting', '2047');
ini_set('display_errors', '1');
edsanzAuthor Commented:
how to I declare the other answer as "Assisted Answer" ??  After accepting the first one, I don't see an option to accept the second answer.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.