Ok. This is what the file will look like:
[li][c olor= orange]1[/ color][ c olor=green]12,000 [ /color][link=
Well, it just repeats with different rank, post count (which is the 12k) and the name.
Well, I want to read the file and then use the 12k number and subtract (use gmp_sub) it from a new number and then store it in a variable.
The entire script so far is this:
<?php
set_time_limit(100777);
$firstmarkup = “[li][color =orange]”;
$markup1 = “[/color][colorc=green]”;
$secondmarkup = “[/color][link=
$thirdmarkup = “]”;
$fourthmarkup = “[/link][/li]”;
$three = trim($thirdmarkup);
echo (“DragonBall Member Update<br><br>”);
$names=file(“names.txt”);
for($i=0;$i<sizeof($names);$i++){
$fname=”
$userpage=fread(fopen($fname,”r”),900000);
eregi(‘Posts:</B> </td>
([ ]*)?<td class=”BoardRowB”>(.
$mu[$names[$i]]=str_replace(“,”,””,$regs[2]);
}
arsort($mu, SORT_NUMERIC);
$rank=0;
$srank=0;
while(list($name,$pc) = each($mu)){
$rank++;
echo “$firstmarkup$rank$markup1 “.ereg_replace(“(.+)(.{3})$”,”
$secondmarkup$name$three$name$fourthmarkup <br>”;
}
echo “<br>Top 10<br><br>”;
while($srank<10) {
$srank++;
echo “$srank $mu<BR>”;
}
?>
When I run the script, I will copy what it prints out and then save it as a text file (which will be used as the old number to compare with).
This may be real confusing.
Basically, I want it to print out how many posts he has gained since the last time I ran the script.
Thanks ?