Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Inizializzo vuota
- $stringa_output = "";
- //Leggo il file di testo
- $file_ip = file_get_contents('file_che_contiene_gli_ip.txt');
- //Creo array
- $array = explode("\n", $file_ip);
- foreach ($array as $key => $value) {
- $stringa_output .= "http://" . $value . "/index.html" . "<br />";
- }
- //$stringa_output contiene il risultato finale, ho aggiunto <br /> per andare a capo se visualizzi nel browser
- echo $stringa_output;
Add Comment
Please, Sign In to add comment