Forum Moderators: coopster

Message Too Old, No Replies

running and retreiving info from server

         

Blelisa

1:13 pm on May 22, 2006 (gmt 0)

10+ Year Member



Hello all,

I have a program that sits on my server. I need to write a page that instructs the visitor to input some data, click on submit, then call the program on my server, start it running with the input the visitor gives, then produce a result, then hand that result back to the browser to deliver to the visitor.

Could anyone give me a few hints as to how to get started or when to look for a tutorial for this?

Any help is greatly appreciated.

-Lisa

barns101

1:17 pm on May 22, 2006 (gmt 0)

10+ Year Member



You're describing the functions of a bog-standard PHP script. :) What exactly do you need the script to do?

dreamcatcher

1:43 pm on May 22, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Lisa,

Try these threads in our library:

Learning PHP - Books, Tutorials and Online Resources
[webmasterworld.com...]

Basics of extracting data from MySQL
[webmasterworld.com...]

dc

Blelisa

2:46 pm on May 22, 2006 (gmt 0)

10+ Year Member



Thanks for the responses.

I have a DOS program that sits on my server (it is a lisence generator program)

My vistior to my page enters in necessary info, clicks on generate.

This causes my lisence generator program to open and run
Then input the vistors info into program
Generates a code
Send the code back to the browser.

I hope this makes sense

eelixduppy

8:36 pm on May 22, 2006 (gmt 0)



You can use system() [us2.php.net] or passthru() [us2.php.net] or any other function for executing external programs on the server. As for passing the data to the program, the program is going to need some sort of command-line argument or other method for inputting the data into it.