By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,377 Members | 1,659 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,377 IT Pros & Developers. It's quick & easy.

php serial web

P: 5
Hi, I am trying to send a number to my serial port but by creating a
web interface using php and apache web server.. Any help available?

Well, this is my html program for the user to post a number and then
the get.php will send it (still hasn't..!) to the serial port.


<HTML>

<HEAD>
<TITLE>Sissy</TITLE>
</HEAD>

<BODY>
put the number (V):
<BR><BR>

<FORM ACTION="get.php" METHOD="get">
Ταση (V):
<INPUT TYPE="TEXT' NAME="volts" size="7" maxlength="6" />
<INPUT TYPE="SUBMIT" VALUE="SEND" />
</FORM>

</BODY>

</HTML>


get.php



<HTML>

<HEAD>
<TITLE>Post and Get Functions</TITLE>
</HEAD>

<BODY>
you put:
<BR><BR><BR>

<?PHP
$timiV=$_GET['volts'];
echo "Tasi (V): $timiV<BR>";
$Tasi=(float)$timiV;
exec('c:\DC_control.exe');
?>

</BODY>

</HTML>

and I have already set up an apache server but I don't know how to
load the above files on it..
I am a newbie.. Any help available, please?

Thank you in advance,

Astarti
Aug 7 '07 #1
Share this Question
Share on Google+
4 Replies


ak1dnar
Expert 100+
P: 1,584
By going through your scripts, what I can understand actually, You can Pass
form element value via HTTP Get request to the get.php and It will display the User input in the browser window.

And you are trying to execute another exe file too. Do you want to build any combination with exe file and user input. ? Or Only thing you wanted to just execute the web pages in a Apache server which support php.?
Aug 7 '07 #2

P: 5
I just want to execute the exe.file I don't want any feedback. Just the user will put a variable and it will be send to the serial but in a web interface. The html file will call the php file and will execute the exe.


Astarti
Aug 7 '07 #3

ak1dnar
Expert 100+
P: 1,584
I just want to execute the exe.file I don't want any feedback.
Hi there,

You may try here then Hope It may help out for you.

-Thanks!
Aug 7 '07 #4

P: 5
Hi there,

You may try here then Hope It may help out for you.

-Thanks!

Thanks a lot!! I think it will help me out.

I let you know!!

Astarti
Aug 8 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.