title: How to get Apache2.2 load the SQLite3 Class from PHP?
body: <p>I am currently trying to get a working PHP environment on Windows, but for some reason Apache isn't able to execute e.g. <code>print_r(SQLite3::version());</code>, but says <code>Fatal error: Class 'SQLite3' not found in C:\Program Files (x86)\Apache2.2\htdocs\index.php on line 8</code>, while <em>php.exe</em> prints perfectly correct output.</p>
  
  <p>In <em>php.ini</em> I only load <code>extension=php_sqlite3.dll</code>, nothing else. In <em>httpd.conf</em> I got <code>PHPIniDir "C:/Program Files (x86)/PHP/"</code> which enables Apache to handle normal php commands like <code>echo phpinfo();</code>.</p>
  
  <p>Does anybody know what I have to do so SQLite3 works through Apache, too?</p>
  
  <p>Thanks in advance!</p>
  
  <p>EDIT:</p>
  
  <p>Nevremind, solved it myself: The default line <code>extension_dir = "ext"</code> for Windows installations had to be changed to the absolute path, in my case <code>extension_dir = "c:\Program Files (x86)\PHP\ext"</code>. This made it all work!</p>