Final
Final
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
<?php // exec.php
|
||||
$cmd = "dir"; // Windows
|
||||
// $cmd = "ls"; // Linux, Unix & Mac
|
||||
|
||||
exec(escapeshellcmd($cmd), $output, $status);
|
||||
|
||||
if ($status) echo "Exec command failed";
|
||||
else
|
||||
{
|
||||
echo "<pre>";
|
||||
foreach($output as $line) echo htmlspecialchars("$line\n");
|
||||
echo "</pre>";
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user