Guest User

Untitled

a guest
Jun 21st, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. <ol>
  2. <h2>Drive 1</h2>
  3. <?php
  4.  
  5. $raw = file_get_contents("drive1.txt");
  6. $lines = explode(chr(10), $raw);
  7. foreach($lines as $line) {
  8. $output .= '<li>' .$line .'</li>';
  9. }
  10.  
  11. echo $output;
  12. ?>
  13.  
  14. <h2>Drive 2</h2>
  15.  
  16. <?php
  17.  
  18. $raw = file_get_contents("drive2.txt");
  19. $lines = explode(chr(10), $raw);
  20. foreach($lines as $line) {
  21. $output .= '<li>' .$line .'</li>';
  22. }
  23.  
  24. echo $output;
  25. ?>
  26.  
  27. <h2>Drive 3</h2>
  28.  
  29. <?php
  30.  
  31. $raw = file_get_contents("drive3.txt");
  32. $lines = explode(chr(10), $raw);
  33. foreach($lines as $line) {
  34. $output .= '<li>' .$line .'</li>';
  35. }
  36.  
  37. echo $output;
  38. ?>
  39. </ol>
Add Comment
Please, Sign In to add comment