title: PHP printing - Call to undefined function printer_list()
body: <p>I am trying to use PHP's printer functions. But PHP gives an undefined function error. I am using PHP 7.2 so I looked for a php_printer.dll online but I only found for PHP 5.x. I copied it to PHP ext directory and added a line to my php.ini, restarted apache but it still is not working.</p>
  
  <p>I wanted to be able to list all available printers on my network and choose one and print with it.</p>
  
  <pre><code>C:\xampp\php\ext\php_printer.dll
  </code></pre>
  
  <p><strong>php.ini</strong></p>
  
  <pre><code>extension=php_printer.dll
  </code></pre>
  
  <p>Here is my code</p>
  
  <pre><code>$ouput = 'Test print...';
  
  $getprt = printer_list( PRINTER_ENUM_LOCAL | PRINTER_ENUM_SHARED );
  $handle = printer_open(getprt['NAME']);
  
   if($handle) {
        echo "connected";
   } else {
        echo "not connected";    
   }
  
  printer_set_option($handle, PRINTER_MODE, "raw"); 
  printer_write($handle,$output);
  printer_close($handle);
  </code></pre>