0

hello.. i'd like to confirm if the printer function "printer_open()" without parameters opens the printer connected to the user/client computer? or does it look at all network connections including the web for the presence of a printer?

thanks..

2
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by sim_pack
0

Without the parameter, the printer_open function attempts to find the default printer from your php.ini settings. If it can't find them it will then use the default printer of the machine running the script. It is always recommended to specify the printer name if known, or prompt the user for the printer if possible.

EDIT: Check out the printer_list() function, it might help you specify the printer if you have no other way of determining it.

Edited by darkagn: n/a

0

If it can't find them it will then use the default printer of the machine running the script.

do you mean "the server" when you say 'the machine running the script'? or the client/user accessing the program?

anyways, i'll decide to include parameters in using printer_open() lest a 'not intended' default printer exists in php.ini.

thanks for the heads up darkagn..

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.