note 32705 modified in function.printer-open by cece

From: Date: Fri, 22 Aug 2003 18:21:30 +0000
Subject: note 32705 modified in function.printer-open by cece
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-54885@lists.php.net to get a copy of this message
[Editor's Note:] You can use single quotes instead for two reasons: - PHP isn't parsing string in single quotes, so it's a bit resource friendly - No parsing, not needed to escape slashes <?php $handle = printer_open('\\DOMAIN_NAME\Printer_Name'); ?> [/Note] Connecting to Network Printers <?php $handle = printer_open("\\\\DOMAIN_NAME\\Printer_Name"); ?> Similiar to how you would locate a domain on your network you need to have 2 prefix slashes. But as reminder you need to escape it. So really you need 4 slashes. It worked me. Hopefully this helps who is having problems connecting to network printer. --was-- Connecting to Network Printers $handle = printer_open("\\\\DOMAIN_NAME\Printer_Name"); Similiar to how you would locate a domain on your network you need to have 2 prefix slashes. But as reminder you need to escape it. So really you need 4 slashes. It worked me. Hopefully this helps who is having problems connecting to network printer. http://www.php.net/manual/en/function.printer-open.php

« previous php.notes (#54885) next »