Buon giorno, ho letto i pochi post che sono presenti all'interno del forum, e ho preso questo script che aimè non funziona restituendomi quest'errore:
"Warning: fsockopen() [function.fsockopen]: unable to connect to http://www.3bmeteo.com/mappedin/visu...ro.php?ly=1:80 (Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?) in C:\Programmi\xampp\htdocs\guadalupe.org\meteo_2.ph p on line 12
Unable to find the socket transport "http" - did you forget to enable it when you configured PHP? (44530552)"
So anche che, devo avere l'autorizzazione del webmaster del sito che mette a disposizione le previsioni, per poterle visualizzare sul mio...codice:<?php $content = ''; $fp = fsockopen ("http://www.3bmeteo.com/mappedin/visualizza/meteo_localita_estero.php?ly=1", 80, $errno, $errstr, 30); if (!$fp) { echo "$errstr ($errno) \n"; } else { fputs ($fp, "GET / HTTP/1.0\r\nHost:Meteo Guadalupa\r\n\r\n"); while (!feof($fp)) { $content .= fgets ($fp,128); } fclose ($fp); } // $content contiene la pagina in questione // adesso trovi una regola che ti permetta di individuare la parte // che ti interessa e di farne quel che vuoi ?>
Potreste dirmi per favore come risolvere?
Grazie mille...

					
					
					
						
  Rispondi quotando
						
 Cmq.