Home > PHP > Function > Printer > printer_open()

printer_open()

printer_open - Opens a connection to a printer

Syntax

resource printer_open (string $printername)

Arguments

  • printername - The printer name. If no parameter was given it tries to open a connection to the default printer (if not specified in php.inias printer.default_printer, PHP tries to detect it).

Description

This function tries to open a connection to the given printer.

Version

PHP PECL printer SVN

Return value

Returns a printer handle on success or FALSE on failure.