Ah, the joys of strlen().
That's your first question, but now for the second.
Sending data directly to the printer is basically a client side function,
and as PHP is totally server side it just can't do it. Not technologically
possible.
There are some "printer direct" type programs around, and you can certainly
figure out a way to make PHP work with those, but that's about all you can
do.
--
Plutarck
Should be working on something...
...but forgot what it was.
""Tim Legg-Bagg"" <[EMAIL PROTECTED]> wrote in message
001001c0bdc7$e63a5ce0$f062893e@tim">news:001001c0bdc7$e63a5ce0$f062893e@tim...
Hi
Can you help please.
I have just started to experiment with PHP and I am impressed with the power
of the language. But (isn't there always) 2 things:
1 Very minor and can be worked around very easily. I cannot find a PHP
function to return the length of a string. Can MySql's LENGTH function be
used.
2 This is causing me grief: I want to be able to send a text file directly
to the printer without first displaying it and going through the print
dialog.
Your help will be much appreciated.
TIA
Tim Legg-Bagg
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]