-
-
Save parzibyte/36245297ff06428cb396834fc7f021fb 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 = "dir"; | |
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