Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $glob = glob("/home/user/Documentos/*", GLOB_NOSORT);
- foreach($glob as $lines){
- echo($lines . "<br />");
- }
- echo("<br />");
- echo(fileperms("/home/user/Documentos"));
- echo("<br />");
- echo(fileowner("/home/user/Documentos"));
- echo("<br />");
- $path = "/home/user/Documentos/file.txt";
- file_put_contents($path, "This is a text.");
- echo(fileperms($path));
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement