title: having trouble configuring mysql on php in windows xp
body: <p>I've been trying hard to get this simple configuration problem resolved.  All I want is to enable mysql so it could work with my php.  In my environment, I have PHP 5.2/IIS 5.0/MySQL 5.0 configured on my Windows XP machine, and all setup.  From what I heard from numerous sources of technical advice, the simple thing to enable MySQL is to uncomment these lines from php.ini file.</p>
  
  <p><strong>extension=php_mysql.dll<br>
  extension=php_mysqli.dll</strong></p>
  
  <p>and modify the <strong>extension_dir</strong></p>
  
  <p><strong>extension_dir = "c:\php\ext"</strong></p>
  
  <p>But after all that, it's still not working.</p>
  
  <p>I went on investigating the cause of the issue by running <em>phpinfo()</em> and I realised mysql functions is not enabled at all.  (Bizarre...) Then I open up command prompt, typed <strong>php -m</strong> and confirmed that mysql functions were enabled.</p>
  
  <p>Finally, one interesting discovery I found is that I typed <strong>php -i</strong> and found these couple of lines.</p>
  
  <p><strong>Configuration File (php.ini) Path => C:\WINDOWS<br>
  Loaded Configuration File => C:\php\php.ini</strong></p>
  
  <p>But under <em>phpinfo()</em>, it shows the following:</p>
  
  <p><strong>Configuration File (php.ini) Path C:\WINDOWS<br>
  Loaded Configuration File   (none)</strong></p>
  
  <p>Loaded Configuration File from <em>phpinfo()</em> is missing!  Why??  How did it end up here?</p>
  
  <p>Anyone got any ideas?</p>
  
  <p>PS: I've setup my environment variable PATH to point to C:\php\ folder so that's working fine.</p>