title: HTML Purifier : using basic example without success
body: <p>I am trying to use <a href="http://htmlpurifier.org/" rel="nofollow">HTML Purifier</a> without success. </p>
  
  <p>My code is below : </p>
  
  <pre><code>    &lt;?php
  include_once('purifier/htmlpurifier-4.7.0-lite/library/HTMLPurifier.auto.php');
  
  $config = HTMLPurifier_Config::createDefault();
  $config-&gt;set('Core', 'Encoding', 'UTF-8');
  $config-&gt;set('HTML', 'Doctype', 'HTML5');
  
  $filter = new HTMLPurifier($config);
  include 'config.php';
  
  
  $name =  $filter-&gt;purify($con, $_POST["name"]);
  </code></pre>
  
  <p>I am using this correctly. In addition I am using HTML5. When reading the docs I do not see it being an option. Is my config.php a problem ?</p>
  
  <p>I looked at the basic example and thought it would be straight forward. My path is correct as I checked it with:</p>
  
  <pre><code>$filename = 'purifier/htmlpurifier-4.7.0-lite/library/HTMLPurifier.auto.php';
  
  if (file_exists($filename)) {
      echo "The file $filename exists";
  } else {
      echo "The file $filename does not exist";
  }
  </code></pre>
  
  <p>I get an error with "cannot open stream".</p>
  
  <pre><code>Notice: Using deprecated API: use $config-&gt;set('Core.Encoding', ...) 
  
  instead in E:\NEW1\xampp\htdocs\tests\purifier\htmlpurifier-4.7.0-lite\library\HTMLPurifier\Config.php on line 901
  
  Notice: Using deprecated API: use $config-&gt;set('HTML.Doctype', ...) instead in E:\NEW1\xampp\htdocs\tests\purifier\htmlpurifier-4.7.0-lite\library\HTMLPurifier\Config.php on line 901
  
  Warning: Value not supported, valid values are: HTML 4.01 Transitional, HTML 4.01 Strict, XHTML 1.0 Transitional, XHTML 1.0 Strict, XHTML 1.1 in E:\NEW1\xampp\htdocs\tests\purifier\htmlpurifier-4.7.0-lite\library\HTMLPurifier\Config.php on line 901
  
  Warning: parse_ini_file( &lt;script&gt;alert("hello");&lt;/script&gt;): failed to open stream: Invalid argument in E:\NEW1\xampp\htdocs\tests\purifier\htmlpurifier-4.7.0-lite\library\HTMLPurifier\Config.php on line 836
  
  Warning: Invalid argument supplied for foreach() in E:\NEW1\xampp\htdocs\tests\purifier\htmlpurifier-4.7.0-lite\library\HTMLPurifier\Config.php on line 684
  
  Catchable fatal error: Object of class mysqli could not be converted to string in E:\NEW1\xampp\htdocs\tests\purifier\htmlpurifier-4.7.0-lite\library\HTMLPurifier
  </code></pre>
  
  <p>Errors Added</p>
  
  <p>I ve tried the following code change as the and cleared some errors</p>
  
  <pre><code>&lt;?php
  require 'purifier/htmlpurifier-4.7.0-lite/library/HTMLPurifier.auto.php';
  
  $config = HTMLPurifier_Config::createDefault();
  $purifier = new HTMLPurifier($config);
  
  include 'config.php';
  
  $hs = $purifier-&gt;purify($con,$_POST["hs"]);
  </code></pre>
  
  <p>I still get following errors and the one I refer to at the beginning. </p>
  
  <pre><code>    Warning: parse_ini_file( ddddddddddffffffffffffff): failed to open stream: No such file or directory in E:\NEW1\xampp\htdocs\tests\purifier\htmlpurifier-4.7.0-lite\library\HTMLPurifier\Config.php on line 836
  
  Warning: Invalid argument supplied for foreach() in E:\NEW1\xampp\htdocs\tests\purifier\htmlpurifier-4.7.0-lite\library\HTMLPurifier\Config.php on line 684
  
  Catchable fatal error: Object of class mysqli could not be converted to string in E:\NEW1\xampp\htdocs\tests\purifier\htmlpurifier-4.7.0-lite\library\HTMLPurifier\Lexer.php on line 298
  </code></pre>
  
  <p>I want to use it on multiple post values.</p>