• Hey everyone,

    I’m working on a project to create an online frontend for a Linux executable that takes several command line arguments and returns a string of characters. Basically, what I want to do is have users submit an online form, then use PHP to execute the Linux program using the values from the form as arguments. The program’s output would be displayed on the next page. Does anyone know WP plugins that will make this (somewhat) straightforward? Exec-PHP looks to be pretty good for running PHP, and CForms II is a great form, but it doesn’t look like CForms II can do much in the way of posting variables. Has anyone used Exec-PHP to take posted variables from a form? Thanks for any help you can provide.

Viewing 1 replies (of 1 total)
  • You’ll probably want to be careful with that. Check each argument to make sure it fits the narrow parameters of your system call. Even if your form has drop-downs and validation, hackers can bypass that.

    You can create any PHP function in the functions.php file in your Theme directory, and then call that from your theme. Or write a plugin, it’s not difficult.

    As for passing parameters, normally WordPress keeps tight control, so check the Codex docs: Custom Queries

Viewing 1 replies (of 1 total)
  • The topic ‘Plugin to act as a frontend for Linux executables’ is closed to new replies.