string escapeshellcmd ( string command ) escapes special characters in shell commands : escapeshellcmd « Utility Function « PHP
- PHP
- Utility Function
- escapeshellcmd
string escapeshellcmd ( string command ) escapes special characters in shell commands
$_GET["search"] = escapeshellcmd($_GET["search"]);
passthru("grep {$_GET["search"] /var/www/meetinglogs/*");
Related examples in the same category