Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>Untitled Document</title>
- </head>
- <body>
- <?php
- $file = fopen("noaa.txt", "r") or exit("Unable to open file!");
- define('ROOT_PATH', dirname(__FILE__));
- //Output a line of the file until the end is reached
- while(!feof($file))
- {
- $pdfs = strip_tags(fgets($file));
- $pdfs = str_replace("\r\n", "", $pdfs);
- echo($pdfs);
- $path = ROOT_PATH.'/' + $pdfs;
- $mill = 'http://www.charts.noaa.gov/PDFs/'.$pdfs;
- $spill = $mill;
- echo ($spill);
- copy($spill, $pdfs);
- }
- fclose($file);
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement