Created
February 19, 2024 02:10
-
-
Save kezzyhko/02106ee3409f6b313754a0e488cd4ede to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function shell_with_print($cmd_pattern, ...$argv) { | |
$cmd = sprintf("$cmd_pattern 2>&1", ...$argv); | |
echo $cmd; | |
echo "\n"; | |
system($cmd, $ret); | |
return ($ret == 0); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment