0

i want to print file which contain in $file variable on a local printer. I want a pop up window just like Java Script window.print(). My question is that how i can do the same job using PHP only? here is a solution but it does not show pop up window.

Jamshid Ali
  • 101
  • 1
  • 11

1 Answers1

0

As PHP runs on the host server only, there is no way to interact with the user using a popup window after the page loads as Javascript can. The easiest way would be to have PHP echo the Javascript commands.

Daniel H
  • 51
  • 1
  • 5