-
-
Save parzibyte/8a5720fab7f7ee91f6b1139acf82e112 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 | |
$comando = "ls"; | |
exec($comando, $salida, $codigoSalida); | |
echo "El código de salida fue: " . $codigoSalida; | |
echo "\n"; | |
echo "Ahora imprimiré las líneas de salida:"; | |
foreach($salida as $linea){ | |
echo $linea; | |
echo "\n"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment