Advertisement
Guest User

Untitled

a guest
Oct 10th, 2017
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.39 KB | None | 0 0
  1. <?php
  2.  
  3.     $glob = glob("/home/user/Documentos/*", GLOB_NOSORT);
  4.     foreach($glob as $lines){
  5.         echo($lines . "<br />");
  6.     }
  7.  
  8.     echo("<br />");
  9.  
  10.     echo(fileperms("/home/user/Documentos"));
  11.  
  12.     echo("<br />");
  13.  
  14.     echo(fileowner("/home/user/Documentos"));
  15.  
  16.     echo("<br />");
  17.  
  18.     $path = "/home/user/Documentos/file.txt";
  19.  
  20.     file_put_contents($path, "This is a text.");
  21.  
  22.     echo(fileperms($path));
  23.  
  24. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement