In a local environment changing the php.ini file works fine. In a hosted environment, I believe it depends upon how the host has set things up (cue: Dr Byte, who is rather more expert in this area than me).