Passing param to an executable from PHP script. possible?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
balaftunax
Forum Newbie
Posts: 3
Joined: Mon Nov 05, 2007 11:00 am

Passing param to an executable from PHP script. possible?

Post by balaftunax »

Hello.

For software protection with a software generated number, and a key generated online, I would like to do the following:

A form on a web page will receive a number (which was generated by the software), pass the number to an executable on the server, (the key generator), and then display the output from the key generator to the user.

Is this possible with PHP?

(While I have a lot of experience with other languages, especially Java, I am a newbie with Drupal and PHP)

Thank you.

Shay.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Yes.
balaftunax
Forum Newbie
Posts: 3
Joined: Mon Nov 05, 2007 11:00 am

Post by balaftunax »

feyd, could you please give me a clue, or refer me to somewhere where I can find this info.
Thanks.
Shay.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

system(), shell_exec() and their siblings should be of interest.
balaftunax
Forum Newbie
Posts: 3
Joined: Mon Nov 05, 2007 11:00 am

Post by balaftunax »

Many thanks!
Post Reply