printing file to printer using php

Discussion in 'PHP' started by phpdev12, Aug 28, 2009.

Thread Status:
Not open for further replies.
  1. #1
    Hi,

    I am working on shopping cart..
    Requirement: When website user places the order using website, the same order should be printed as a document using php script not javascript.

    I am fetching the content from the mysql table and displying the same on webpage and want the same to be printed as a document on client printer?

    Any help please!!
     
    phpdev12, Aug 28, 2009 IP
  2. tobydawson13

    tobydawson13 Active Member

    Messages:
    645
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    60
    #2
    Could you post some of the code? and I may be able to help.
     
    tobydawson13, Aug 28, 2009 IP
  3. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #3
    Bohra, Aug 28, 2009 IP
  4. premiumscripts

    premiumscripts Peon

    Messages:
    1,062
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    0
    #4
    PHP is server side, you cannot force a client to print a document clientside. You need javascript.
     
    premiumscripts, Aug 28, 2009 IP
  5. kane4545

    kane4545 Guest

    Messages:
    99
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You cannot print directly using php but you can do it using javascript
     
    kane4545, Aug 28, 2009 IP
Thread Status:
Not open for further replies.