One more thing, When I run my php script I see that the printjob gets put into the windows printing list for that printer however it pops up, says its spolling under the status then disappears and nothing prints... :( -----Original Message----- From: Moore, Joshua [mailto:Joshua.Moore@xxxxxxxxx] Sent: Wednesday, May 30, 2007 6:24 AM To: Juan Ignacio Borda; php-windows@xxxxxxxxxxxxx Subject: RE: Printing via webapp Yes it is a printer on LPT1. Well IF it is indeed a permissions problem then I would guess its permissions on the barcode printer im trying to print too because if I change the printer to my LaserJet it prints fine with no warnings or errors. However looked on the PHP manual comments it said this: "If you need printer_write you must to change the datatype: printer_set_option($handle, PRINTER_MODE, "RAW"); " so my code: <? function getPrinter($SharedPrinterName) { global $REMOTE_ADDR; $host = getHostByAddr($REMOTE_ADDR); return "\\\\".$host."\\".$SharedPrinterName; } $handle = printer_open(getPrinter("ZebraZ4M")); printer_set_option($handle, PRINTER_MODE, "RAW"); printer_write($handle, "Text to print"); printer_close($handle); ?> The warning goes away but it doesn't print!! :( Nothing in the apache2 error logs :( Im stuck, any ideas? -----Original Message----- From: Juan Ignacio Borda [mailto:webmaster@xxxxxxxxxxxxxxxxxxxx] Sent: Wednesday, May 30, 2007 5:44 AM To: php-windows@xxxxxxxxxxxxx Subject: Re: Printing via webapp I'm intrested on this function too, did you tried to print locally let's say to LPT1 ? this will jelp you debug if it's the case that you can't print or acces a shared resource. > >> In that case I really can't help you since I've never heard of Uniform >> Server. >> > > Uniform Server is a WAMP package. It was mentioned on this or the Db > list recently. Presumably then, Apache's permissions would be the > determining factor? > > http://www.uniformserver.com/ > > > > Niel > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php