always worth a try although in my experience only a small percentage of hosts allow php.ini changes through htaccess files in a shared environment.
You will know whether it works right away though

as your entire site will be a white page of death if you do this and its not allowed. Then simply get rid of the line if you have a problem and things will be back to normal