<p>We have PHP 5.2.6 deployed to c:\php and in that folder there is the php.ini file. On Windows, can a website override these settings similar to the way that apache has .htaccess? e.g.</p>

<pre><code>DirectoryIndex index.php index.html
&lt;IfModule mod_php5.c&gt;
php_flag magic_quotes_gpc off
  php_flag register_globals off
&lt;/IfModule&gt;
&lt;IfModule mod_php4.c&gt;
  php_flag magic_quotes_gpc off
 php_flag register_globals off
&lt;/IfModule&gt;
</code></pre>

<p><strong><em>Update:</em></strong> </p>

<p>I was aware of ini_set() but wondered if there was a declarative way to do this in a configuration file in the website rather than in script.</p>

I would recommend doing all you can to avoid changing r
```
egister_globals
```
to on as it's a major security hole.
But you can try using
```
init_set()
```
to change the settings within your PHP code, although some settings cannot be changed once PHP has started running. (These are somewhat server dependent I believe.)