Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <ol>
- <h2>Drive 1</h2>
- <?php
- $raw = file_get_contents("drive1.txt");
- $lines = explode(chr(10), $raw);
- foreach($lines as $line) {
- $output .= '<li>' .$line .'</li>';
- }
- echo $output;
- ?>
- <h2>Drive 2</h2>
- <?php
- $raw = file_get_contents("drive2.txt");
- $lines = explode(chr(10), $raw);
- foreach($lines as $line) {
- $output .= '<li>' .$line .'</li>';
- }
- echo $output;
- ?>
- <h2>Drive 3</h2>
- <?php
- $raw = file_get_contents("drive3.txt");
- $lines = explode(chr(10), $raw);
- foreach($lines as $line) {
- $output .= '<li>' .$line .'</li>';
- }
- echo $output;
- ?>
- </ol>
Add Comment
Please, Sign In to add comment