/etc assumes that you have a dedicated server and have root access.

In your case, the php.ini goes in the directory that the script runs in. You can see if your overrides are working by looking at php info.

Code:
 
<?
phpinfo();
?>