|
Posted by Justin Koivisto on 10/25/05 18:22
lkrubner@geocities.com wrote:
> I'd like to write a PHP script to be used from the command line on a
> Unix machine. I'd like for the script to put together a string, turn it
> into a web page, print it, then return control the command line.
>
> Obviously it is quite easy to make a string that is valid HTML and send
> it to the printer. The tough part is making look like a web page. In
> particular, image tags should print out as images, not image tags.
>
> Does anyone have an idea about how this is done?
>
> Many thanks in advance.
>
What kind of system are you running on (linux, windows, mac, etc)?
My first thought would be to have the system call a web browser's print
function, but that may be a bit too complex since it would amost
certainly involve some kind of shell scripting or creating a simple
browser yourself...
--
Justin Koivisto, ZCE - justin@koivi.com
http://koivi.com
Navigation:
[Reply to this message]
|