tags:

views:

190

answers:

4

Hai Guys, I have to print a page in php but i dont want to use window.print ..... I have to print without opening the print dialog box... I am using php.....

+5  A: 

PHP is a server side language, and therefore it can only affect actions at the server. Printing is a client-side action and so PHP can't help you out. Javascript is what you're talking about with window.print() and as far as I know, that's the only programmatic way to print from the browser.

nickf
+1  A: 

Pandiya,

The answer you looking for is: No, there is no existing solution that allows you to trigger print event without user input (via prompting print dialog).

rockacola
A: 

I dont think that there is any server side script. can you tell me whats difference you are trying to create by executing any print script on server side? and whats the problem of using javascript functions

Royads
A: 

You can do this in firefox. Just search for

user_pref("print.always_print_silent",true); user_pref("print.show_print_progress",false);

I am also looking for a way to do it in opera....

neufuture