Hoi
es geht aber leider immer noch nicht, bzw. findeste er nix:
<?
if ($url) {
$ar = file($url);
$ps = "";
$selektoren = "";
$as = "";
$as = 0;
... ist besser (und richtig)
for($i=0; $i<count($ar); $i++)
{ $ps .= $ar[$i];
if(strstr($ps, "{") && strstr($ps, "}") && substr_count($ps, "{")==substr_count($ps, "}"))
{ $ar2 = explode("}", $ps);
for($j=0; $j<count($ar2); $j++)
{
if(strstr($ar2[$j], "{"))
{ $ar3 = explode("{", $ar2[$j]);
$selektoren[$as] = trim($ar3[0]);
$ar3++;
Und das muß freilich ...
$as++;
... heißen, sonst gibt's keinen Sinn.
}
}
$ps = "";
}
}
for($i=0; $i<count($selektoren); $i++) {
echo "<b>".$selektoren[$i]."</b><br>"; }
}
?>
Sobald ich wieder daheim bin werd ich's mal gscheid ausprobieren, dann kann ich Dir auch sagen woran's liegt :-)
Ciao,
Harry