[thelist] PHP LPT1 Question

Scott Harman scott at enteractiontv.com
Wed Sep 3 02:48:19 CDT 2003


Very odd! ;)

I'm guessing you want a teleprinter type operation

http://www.php.net/manual/en/ref.printer.php

By single byte I'm guessing you mean unicode character?
There shouldn't be any reason why you can't open connection -> do stuff
(print bytes) loop until done -> close connection

You're talking about manipulating a spool rather than a printer, but
it's theoretically the same - this way you could presumably write all
form field inputs simultaneously to a db and to a physical archive?

It looks like it may only be supported under windows

The comments outline it all quite nicely

-----Original Message-----
From: Tanner Burson [mailto:tanner at younet.okstate.edu] 
Sent: 03 September 2003 09:10
To: thelist at lists.evolt.org
Subject: [thelist] PHP LPT1 Question


I've got a little side project I'm working on involving some custom 
hardware plugged into the printer port (LPT1).  In a fit of sheer 
madness I've decided to attempt to write the software for this thing in 
php (yes i know, its nuts). 

Okay now for the real question, is it possible to send single bytes of 
data to the printer port with php?  From my testing thus far i've been 
able to send entire strings, but i don't have the equipment setup to 
test sending a single byte.  Anyone have any thoughts? ideas?

Tanner Burson

-- 
* * Please support the community that supports you.  * *
http://evolt.org/help_support_evolt/

For unsubscribe and other options, including the Tip Harvester 
and archives of thelist go to: http://lists.evolt.org 
Workers of the Web, evolt ! 


More information about the thelist mailing list