$file = file("http://xml.weather.yahoo.com/forecastrss?p=ISXX0007&u=c"); $line30 = $file[30]; $line31 = $file[31]; $line32 = $file[32];