Advertisement
Guest User

Untitled

a guest
Jul 4th, 2015
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. <?php
  2. $array = array_diff(scandir('upload'), array('..', '.','.DS_Store'));
  3. $storeFolder = 'upload';
  4. $targetPath = dirname( __FILE__ ) . $ds. $storeFolder . $ds;
  5. ?>
  6. <table>
  7. <thead>
  8.  
  9. </thead>
  10. <tr>
  11. <td>File Name</td>
  12. <td>Last changes by</td>
  13. <td>Date/Time</td>
  14. <td>File History</td>
  15. <td>Action</td>
  16. </tr>
  17. <?php
  18. foreach ($array as $file) {
  19. ?>
  20. <tr>
  21. <tr>
  22. <td><?php echo $file;?></td>
  23. <td><?php $arr = posix_getpwuid(fileowner('upload/'.$file)); echo $arr['name'];?></td>
  24. <td><?php echo date("F d Y H:i:s.", filemtime('upload/'.$file));?></td>
  25. <td>-</td>
  26. <td>-</td>
  27. </tr>
  28. <?php
  29. }
  30. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement