This topic is locked
[SOLVED]

 hwo to execute stored linux command

3/23/2015 11:41:22 AM
PHPRunner General questions
I
ISelb author

Can I store a Linux command in a database field and then execute it when a button is pushed?
If so, how?

Sergey Kornilov admin 3/23/2015

Yes, you can use shell_exec function in PHP to run a command:

http://php.net/manual/en/function.shell-exec.php
Getting access to underlying record data is also easy:

http://xlinesoft.com/phprunner/docs/button_getcurrentrecord.htm

I
ISelb author 3/23/2015

Ooof! I was testing with localhost and couldn't see results.
Promoted the project to real server, and 'poof', I can see results!