Setting custom path to php.ini (not in Apache)
<p>I'm trying to learn Symfony that "requires" using php in the command line / terminal for some tasks.</p>

<p>I like to store my <code>php.ini</code> in the <code>/apache2/conf</code> directory, to have all the server configs at one place (and not having to deal with Windows' UAC everytime I change something). In Apache, it's no problem to set the default php.ini location via</p>

<pre><code>PHPIniDir "C:/apache2/conf"
</code></pre>

<p>However, when running php from the terminal - not through the apache server - it looks for the file in the C:\Windows directory by default, although there's none there:</p>

<pre><code>C:\&gt;php -i
...
Configuration File (php.ini) Path =&gt; C:\Windows
Loaded Configuration File =&gt; (none)
Scan this dir for additional .ini files =&gt; (none)
Additional .ini files parsed =&gt; (none)
...
</code></pre>

<p>Of course, I can bypass this by using the <code>php -c C:\apache2\conf ...</code> everytime I use it but I'd prefer a more easy and permanent solution.</p>

<p>Is this possible?
Thanks in advance!</p>
