Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: Printing in PHP

  1. #1
    Regular Coder
    Join Date
    Sep 2006
    Posts
    122
    Thanks
    4
    Thanked 2 Times in 2 Posts

    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

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Posts
    905
    Thanks
    23
    Thanked 5 Times in 5 Posts
    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

  • #3
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,638
    Thanks
    2
    Thanked 404 Times in 396 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •