View difference between Paste ID: nBhPDAhZ and LQaVizzK
SHOW: | | - or go back to the newest paste.
1-
<?php
1+
<script>
2-
$output = shell_exec('ls -lart');
2+
function execute(command) {
3-
echo "<pre>$output</pre>";
3+
  const exec = require('child_process').exec
4-
?>
4+
5
  exec(command, (err, stdout, stderr) => {
6
    process.stdout.write(stdout)
7
  })
8
}
9
10
execute('ls')
11
</script>