
Public Member Functions | |
| __construct ($command, $mimetype=null) | |
| render ($output_body=true) | |
You need to use escapeshellarg() and escapeshellcmd() to provide a "clean" command. The Content-Length will not be set as it is not possible to predict it.
| Pluf_HTTP_Response_CommandPassThru::__construct | ( | $ | command, | |
| $ | mimetype = null | |||
| ) |
The command argument must be a safe string!
| string | Command to run. | |
| string | Mimetype (null) |
Reimplemented from Pluf_HTTP_Response.
| Pluf_HTTP_Response_CommandPassThru::render | ( | $ | output_body = true |
) |
Render a response object.
Reimplemented from Pluf_HTTP_Response.