Page 1 of 1

Passing param to an executable from PHP script. possible?

Posted: Mon Nov 05, 2007 11:23 am
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.

Posted: Mon Nov 05, 2007 12:25 pm
by feyd
Yes.

Posted: Mon Nov 05, 2007 12:42 pm
by balaftunax
feyd, could you please give me a clue, or refer me to somewhere where I can find this info.
Thanks.
Shay.

Posted: Mon Nov 05, 2007 1:02 pm
by feyd
system(), shell_exec() and their siblings should be of interest.

Posted: Mon Nov 05, 2007 3:08 pm
by balaftunax
Many thanks!