Turning off Deprecation warnings in PHP/,htaccess

I’ve just moved to dreamhost from another provider. I need to turn off php deprecation error messages as I had done on my previous host. I didn’t have access to the php.ini file on my other host(the same here on the shared hosting), but was able to add the required string within the .htaccess file to hide the errors. But when I do that here the site no longer loads and I get a “500 Internal Server Error”.

The string I’m adding is:
error_reporting = E_ALL & ~E_DEPRECATED & ~E_NOTICE

Anyone got any ideas on this?

Instead of using htaccess, try using a phprc file. This wiki tells you how to do it. http://wiki.dreamhost.com/PHP.ini#How_to_add_a_phprc_file