@@ -1,4 +1,7 @@
<?php
-$output = shell_exec('ls');
-echo "<pre>$output</pre>";
+$file = 'C:\xampp\htdocs\SMF\sdsdssss.docx';
+
+$content = exec( 'ls', $output );
+var_dump( $output );
?>
@@ -4,5 +4,5 @@ https://stackoverflow.com/questions/1880198/how-to-execute-shell-command-in-java
*/
var fs = require('fs');
-var files = fs.readdirSync('.');
+var files = fs.readdirSync('js');
console.log('OK: ' + files);