Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //Copio il file
- //!copy("http://api.ivao.aero/getdata/whazzup/whazzup.txt", "/var/www/html/casper/whatsupp.txt");
- //apro il file
- $file_handle = fopen("/var/www/html/casper/whatsupp.txt", "r+");
- //leggo il file fin quando non finisce
- while (!feof($file_handle)) {
- //divido il file in righe ed esplodo la riga secondo il divisore ":"
- $line_of_text = fgets($file_handle);
- $parts = explode(':', $line_of_text);
- }
- fclose($file_handle);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement