[K12OSN] PHP help

Doug Simpson simpsond at leopards.k12.ar.us
Mon Jan 23 20:00:51 UTC 2006

Hello all you PHP programmers out there!

I have a program that I need to be able to run from inside a php script 
that produces a web page.

The program allows you to set the pins on the parallel port to high or low 
based on commandline.


lptout 34

will set datalines 2 and 6 high and leave the rest off.

I need to be able to accomplish this with php.

A web form asks for a number between 0 and 255 and passes it to the php 
with a variable name "$bits"

So, I should be able to use:

system("lptout $bits" , $retval);

and it should do the same as running from the commandline:

lptout (bits) where bits is the number

The commandline method works, but I can't do it in PHP. Anyone got any 

Doug Simpson
Technology Specialist
DeQueen Public Schools
DeQueen, AR 71832
simpsond at leopards.k12.ar.us
Tux for President!

More information about the K12OSN mailing list