doesnt seem to be working for me can you see what im doing wrong?
<?php
$Start = "<td><font face=\"Verdana,Arial\" size=\"2\"><B>Honorlevel:</B></font></td>
<td><font face=\"Verdana,Arial\" size=\"2\">";
$End = "</font></td>";
$url = "http://aaotracker.4players.de/usertracker.php?userid=254111";
// Open the file
$file = fopen("$url", "r");
// Read the file
if (!function_exists('file_get_contents')) {
$r = fread($file, 80000);
}
else {
$r = file_get_contents($url);
}
// Grab just the contents we want
$stuff = eregi("$Start(.*)$End", $r);
//now you have your data in an $stuff
?><?php
echo "honor:";
echo $stuff;
?>
the source from the page is as folows
<td><font face="Verdana,Arial" size="2"><B>Honorlevel:</B></font></td>
<td><font face="Verdana,Arial" size="2">41</font></td>
so echo $stuff should output 41 correct? cause all i get is honor: