<?php
$url = 'http://www.koeri.boun.edu.tr/scripts/lasteq.asp';
$data = explode("\n", file_get_contents($url));
foreach($data as $line){
if(strpos($line, "BALIKESIR")){
$regex = '/(.*?) (.*?) (.*?) (.*?) (.*?) (.*?) (.*?) (.*) Quick/m';
preg_match($regex, trim($line," "), $matches);
var_dump($matches);
}
}
?>veriler geliyor. Ama orjinal sitedeki gibi satır satır nasıl getirebilirim?
doğru anladıysam eğer, html bir tablo oluştur.
sonra değerleri tabloda ilgili yerlere
$matches[0]
$matches[1]
$matches[2]
$matches[3]
$matches[4]
$matches[5]
$matches[6]
$matches[7]
$matches[8]
bu değişkenleri kullanarak yazdır.