Hi guys
I tried to use php printer funtions for my applications and they are
driving me nuts!!!couldn't run single printer function in php manual.I use windows 98 and apache .tried to run below code
$handle = printer_open('Canon Bubble-Jet BJC-210');
$handle = printer_open();
printer_start_doc($handle, "test");
printer_start_page($handle);
$pen = printer_create_pen(PRINTER_PEN_SOLID, 2, "000000");
printer_select_pen($handle, $pen);
$brush = printer_create_brush(PRINTER_BRUSH_SOLID, "2222FF");
printer_select_brush($handle, $brush);
printer_draw_elipse($handle, 1, 1, 500, 500);
printer_delete_brush($brush);
printer_delete_pen($pen);
printer_end_page($handle);
printer_end_doc($handle);
printer_close($handle);
and got following error
Fatal error: Call to undefined function: printer_open() in C:\Program Files\Apache Group\Apache2\htdocs\cost\printout.php on line 5
please help me if someone know how to use these funtions