Advertisement
Guest User

Untitled

a guest
Jan 15th, 2020
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1.  
  2. <?php
  3.  
  4. // Use ls command to shell_exec
  5. // function
  6. $output = shell_exec('ls');
  7.  
  8. // Display the list of all file
  9. // and directory
  10. echo "<pre>$output</pre>";
  11. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement