kafayı yedim
Alıntı
Parse error: syntax error, unexpected T_STRING in /home/aaaa/public_html/b.php on line 4
<?php
$f = "http://www.e-lezzet.com/index.php?sayfa=kategori&kategoriID=1";
$xml = file_get_contents ($f);
preg_match_all('<a href=\"?sayfa=tarif&tarifID=([0-9]+)\" style='font-size:11px'>',$xml,$arrt);
preg_match_all('/<link>([^<]*)<\/link>/',$xml,$arrl);
preg_match_all('/<pubDate>([^<]*)<\/pubDate>/',$xml,$arrp);
preg_match_all('/<description>([^<]*)<\/description>/',$xml,$arrd);
unset($arrt[1][0]);
unset($arrt[1][1]);
unset($arrl[1][0]);
unset($arrl[1][1]);
unset($arrd[1][0]);
$title = array_merge($arrt[1]);
$link = array_merge($arrl[1]);
$pubdate = $arrp[1];
$desc = array_merge($arrd[1]);
$ars = array(array_filter($title),array_filter($link),array_filter($pubdate),array_filter($desc));
$len = count($ars[0]);
for($i=0; $i<$len; $i++)
echo '<a href="'.$ars[1][$i].'" target=\"_blank\">'.
$ars[0][$i].'</a> ['.$ars[2][$i].'] <br>'."\n".$ars[3][$i] .'<br>'. "\n";
?>yardımcı olurmusun