How do I call a windows application from PHP where I send it the input that a user would make, and get back its output? All of the input and output are text fields. The actual application wouldn’t be seen by the user, but my PHP program would get the output that would’ve been displayed if the application were started up and the input entered.
Charlie
chvol@aol.com
Calling a Windows application from PHP
Moderator: General Moderators
-
kettle_drum
- DevNet Resident
- Posts: 1150
- Joined: Sun Jul 20, 2003 9:25 pm
- Location: West Yorkshire, England
Great! I looked them up and it seems like that is a starting point - but I need more than what is described:
0. I am running PHP on my Windows 98 PC using Apache from PHP Triad. I want to:
1. Start program.
2. Enter in a text field. A button appears.
3. Click on the button. Two sections fill up with text and between 0 and 3 buttons appear. Keep the text.
4. For each button that appeared, click it and keep the text that appears in the second section.
5. Go to 2 for one more text input.
Can you tell me how to do this?
0. I am running PHP on my Windows 98 PC using Apache from PHP Triad. I want to:
1. Start program.
2. Enter in a text field. A button appears.
3. Click on the button. Two sections fill up with text and between 0 and 3 buttons appear. Keep the text.
4. For each button that appeared, click it and keep the text that appears in the second section.
5. Go to 2 for one more text input.
Can you tell me how to do this?
I think you need to read the manul on COM as well. But generally, the script would receive the input, call the program via creating a COM, EXEC(), or SYSTEM() functions. It would pass the data to the application and get the result back.
To make buttons and form elements appear, you need to use clientside Javascript. Its one way to dynamically create the additional boxes on the client, or you can submit to the server and roundtrip it each time the button is pushed...
To make buttons and form elements appear, you need to use clientside Javascript. Its one way to dynamically create the additional boxes on the client, or you can submit to the server and roundtrip it each time the button is pushed...