[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[K12OSN] PHP help



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.

Example:

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 
ideas?

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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]