hi all,
I am writing the below PHP code to print the job automatically, when i run PHP program.
<?php
$filename = "test.php";
ob_start();
include $filename;
$contents = ob_get_contents();
ob_end_clean();
$handle = "Phaser 5550DN PS";
$handle = printer_open();
printer_set_option($handle, PRINTER_MODE, "raw");
printer_write($handle,$contents);
printer_close($handle);
?>
But, the above code giving error "Fatal error: Call to undefined function printer_open() in C:\xampp\htdocs\xampp\printtest.php on line 8" .
since, i am new to PHP, pls help me get work.
thanks
rgs
vijay