I've got a problem using printer functions with my network printer shared on
another PC as \\192.168.1.3\HP
If the printer is connected and reachable, printer_***() functions work
correctly.
Now let suppose the printer cable is unplagged so the printer is no more
reachable:
$handle = printer_open($printer_address); // Returns an handle also if the
printer is unreachable (it is strange, it should return null)
printer_start_doc($handle, "My Document"); // Returns false. It is correct
because the printer is unreachable.
Now I reconnect the printer cable:
$handle = printer_open($printer_address); // Returns the handle
printer_start_doc($handle, "My Document"); // RETURNS FALSE ALTHOUGHT THE
PRINTER IS CONNECTED.
At this point I cannot print anything using printer functions.
I have to stop and restart Apache service to get TRUE from
printer_start_doc() and every thing works correctly again.
Any idea ?
Thanks for the help.
Stefano