Jump to content

How to tell PHP to print a paper?


tholapz
 Share

Recommended Posts

I have been using PHP for a while. And now I'm trying to make PHP print some paper forms for me.... Can this be done?? I have done program like this with VB successfully but it has to be in PHP so....Are there any functions for this kind of task or anyway to do so??Thks very much

Link to comment
Share on other sites

As far as I know, no, PHP doesn't interface with the peripherals like that. You can use javascript to display a print dialog box, but that's about it. There is a program called PHP-GTK that you can use to write Windows apps with PHP, but it's not very mature, or at least it wasn't when I was looking at it. It doesn't produce a standalone application, it still depends on a PHP install being present. And even so, I still don't think you can interface with the peripherals.

Link to comment
Share on other sites

You can use window.print to have javascript open up a print window, but there is no way to send something directly to the printer. Thank god. Imagine drive-by printer spam from visiting a web site, no thank you.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...