...

View Full Version : Printing in PHP



tribalmaniac
03-02-2007, 10:17 AM
I'm considering using PHP for my CPT6 coursework, the only thing is that reports need to be printed out. I was just wondering how would I go about printing physical information out to the printer?

Sorry if it's a bit vague :)

sir pannels
03-02-2007, 12:37 PM
Yo :)

You'd do all the processing and formatting with PHP and then use javascript to actually print it. Providing your are using a web browser.

If your using command line php you can print directly from PHP to a local printer.

Cheers

Inigoesdr
03-02-2007, 07:22 PM
I'm considering using PHP for my CPT6 coursework, the only thing is that reports need to be printed out. I was just wondering how would I go about printing physical information out to the printer?

Sorry if it's a bit vague :)
javascript:

window.print();



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum