I’m still somewhat new with php, and I’ve got a snippet of code that I cant quite seem to figure out, I was wondering if anyone here would be able to either help me figure how this works (sends a submitted form to an IP printer located in a building) or point me in the right direction to rewrite it.
[php] if($_POST[‘msg_to’] == ‘maintbuild1’) {
$prnfh = popen(‘html2ps | lp -d Maint’, ‘w’);
fwrite($prnfh, $htmlout);
// fwrite($footer);
pclose($prnfh);[/php]