PHP to run TOS commands

Completed php code to read from DB and run file!