rendered paste body<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>OgreIsland Top 200</title>
<style type="text/css">
<!--
body,td,th {
font-family: Arial, Helvetica, sans-serif;
color: #FFFFFF;
}
body {
background-color: #666666;
}
a:link {
color: #FFFFFF;
}
a:visited {
color: #CCCCCC;
}
a:hover {
color: #CCCCCC;
}
a:active {
color: #FFFFFF;
}
-->
</style></head>
<body>
<?php
// Get a file into an array. In this example we'll go through HTTP to get
// the HTML source of a URL.
$lines = file('http://www.ogreisland.com/topplayers.aspx');
$rank = 1;
echo "<meta http-equiv='refresh' content='30;URL=" . $_SERVER['PHP_SELF'] . "'>";
echo "<center><b> OgreIsland Top 200 </b><br>
</center><br>
<center><table border='0'>
<tr>
<td bgcolor='#0066ff'>
<font color ='#ffffff'>
<div align='center'>Rank</div>
</font>
</td>
<td bgcolor='#0066ff'>
<font color ='#ffffff'>
<div align='center'>Name</div>
</font>
</td>
<td bgcolor='#0066ff'>
<font color ='#ffffff'>
<div align='center'>Level</div>
</font>
</td>
<td bgcolor='#0066ff'>
<font color ='#ffffff'>
<div align='center'>Guild</div>
</font>
</td>
</tr>";
// Loop through our array, show HTML source as HTML source; and line numbers too.
foreach ($lines as $line_num => $line) {
if ( $line_num >= 118 && $line_num < 518 && $line_num & 1 ) {
//sets $rank to integer 1 if input is anything other than a numeric value
echo "<tr bgcolor='#000000'><td><div align='center'>" . $rank . "</div></td>" . str_replace('/players/character.aspx','http://ogreisland.com/players/character.aspx',str_replace('<td>','<td><div align="center">',str_replace('</td>','</td></div>',$line))) . "</tr>";
$rank+=1;
}
}
echo '<table></center>';
?>
</body>
</html>