Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-02-2007, 09:17 AM   PM User | #1
tribalmaniac
Regular Coder

 
Join Date: Sep 2006
Posts: 122
Thanks: 4
Thanked 2 Times in 2 Posts
tribalmaniac is an unknown quantity at this point
Printing in PHP

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
tribalmaniac is offline   Reply With Quote
Old 03-02-2007, 11:37 AM   PM User | #2
sir pannels
Regular Coder

 
Join Date: Jun 2002
Posts: 905
Thanks: 23
Thanked 5 Times in 5 Posts
sir pannels is an unknown quantity at this point
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
sir pannels is offline   Reply With Quote
Old 03-02-2007, 06:22 PM   PM User | #3
Inigoesdr
Super Moderator


 
Inigoesdr's Avatar
 
Join Date: Mar 2007
Location: Florida, USA
Posts: 3,602
Thanks: 2
Thanked 398 Times in 391 Posts
Inigoesdr is a jewel in the roughInigoesdr is a jewel in the roughInigoesdr is a jewel in the rough
Quote:
Originally Posted by tribalmaniac View Post
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:
Code:
window.print();

Last edited by Spookster; 03-03-2007 at 01:42 AM..
Inigoesdr is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:22 AM.


Advertisement
Log in to turn off these ads.