473,394 Members | 1,737 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

php serial web

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
4 1250
ak1dnar
1,584 Expert 1GB
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
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
1,584 Expert 1GB
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
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

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

Similar topics

4
by: ^CeFoS^ | last post by:
Hello to everybody, I've done an application that draws in a frame the trajectory of a robot. The robot position is readed through the serial port, and several commands are wrote through the...
15
by: tom | last post by:
Hi, How do I get the serial number of the harddisk in .NET? I want this to be the same number even if the user has reformatted, so I do not want the volume serial number. Thanx, t
3
by: Stewart Allen | last post by:
Hi there I'm trying to find part serial numbers between 2 numbers. The user selects a part number from a combo box and then enters a range of serial numbers into 2 text boxes and the resulting...
13
by: Al the programmer | last post by:
I need to access the serial ports on my webserver from an asp.net page. I have no problem accessing the serial ports from a windows form application, but the code doesn't work in asp.net. I have...
13
by: Rob | last post by:
Hi all, I am fairly new to python, but not programming and embedded. I am having an issue which I believe is related to the hardware, triggered by the software read I am doing in pySerial. I...
2
by: joaquimfpinto | last post by:
Dear All, I made an app in c# that uses several serial ports. For the serial ports I use a pnp Sunix board, some with 8 serial ports other with 4 or even 2 serial ports. Whenever I use the...
4
by: rowan | last post by:
I'm writing a driver in Python for an old fashioned piece of serial equipment. Currently I'm using the USPP serial module. From what I can see all the serial modules seem to set the timeout when...
3
by: naveen.sabapathy | last post by:
Hi, I am trying to use virtual serial ports to develop/test my serial communication program. Running in to trouble... I am using com0com to create the virtual ports. The virtual ports seem to...
6
by: terry | last post by:
Hi, I am trying to send a character to '/dev/ttyS0' and expect the same character and upon receipt I want to send another character. I tired with Pyserial but in vain. Test Set up: 1. Send...
1
by: lutherchp | last post by:
A baffling end to my week! I open my serial port on my Debian PC (Debian version 5.0.1) I have a decent Null Modem lead going to another PC (I'll call it PC#2), with its port open with the same...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.