title: How can I set the Windows command line to use the php.ini file?
body: <p>I have <a href="https://de.wikipedia.org/wiki/EasyPHP" rel="nofollow noreferrer">EasyPHP</a> 5.3.6.0 local server, (with PHP 5.3.6) and it works fine in my browser. However, using the PHP executable on the command line doesn't work without problems.</p>
  <p>I have noticed that command line didn't load the <em>php.ini</em> file:</p>
  <pre class="lang-html prettyprint-override"><code>C:\\&gt; php --ini
  </code></pre>
  <p>Output:</p>
  <pre class="lang-html prettyprint-override"><code>Configuration File (php.ini) Path: C:\Windows
  Loaded Configuration File:         (none)
  Scan for additional .ini files in: (none)
  Additional .ini files parsed:      (none)
  </code></pre>
  <p>Btw, there isn’t a <em>php.ini</em> file in the 'C:\Windows' directory. My server (apparently) uses the 'C:\Program Files (x86)\EasyPHP-5.3.6.0\apache\php.ini' file.</p>
  <p>When I translate PHP files I get a warning:</p>
  <blockquote>
  <p>Warning: date_default_timezone_get(): It is not safe to rely on the system's timezone settings. You
  are <em>required</em> to use the date.timezone setting or the date_default_timezone_set() function. In case
  you used any of those methods and you are still getting this warning, you most likely misspelled th
  e timezone identifier. We selected 'Europe/Helsinki' for '3.0/DST' instead in C:\Program Files (x86)
  \EasyPHP-5.3.6.0\home\timezone.inc.php on line 2</p>
  </blockquote>
  <p>I got no warnings when I used the 'php -c ...' command, but I'd like permanently set an .ini file to use with a command line.</p>