I can't decide whether I'm being overly paranoid here, but if I'm running a PHP script from a commandline and that script echo's out user defined content, do I need to escape it?
For example, would this be potentially dangerous or would the text literally just echo out as plain text?
$test = 'shutdown -h now';
echo $test;
If I do need to escape, is it the escapeshellarg() function I want?