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..

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.

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..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.