oops! my bad! [php_man]fopen()[/php_man] Also look at all the other file opening functions. Look around the forum and internet also on hwo to open file with PHP. after you've got the file opened, here is som code for you to play around with:
Code: Select all
<?php
//I just copied everything from that text file and put it into a string
$string = "BomB,10262048,77295,23404,1820,397,36*ICW,9079253,62912,21642,2163,322,26*LNo,6807445,45531,16173,1180,151,27*DMW,6647833,43558,16017,1170,149,51*NF,6165175,51434,13709,1055,444,81*CAT,6157036,45272,13588,930,165,29*GOD,5355379,50370,12293,1636,624,58*XLT,5148893,34200,12864,913,151,43*BiB,4455928,33585,10037,673,285,9*BnX,4389378,29339,10975,1002,61,31*WST,4261557,32581,10321,1261,277,40*HiS,4216139,30490,9991,571,86,27*ARMY,2473189,22572,5053,359,281,47*EPP,1491750,10736,3600,289,77,25*MOB,1129248,13549,2564,410,244,48*FaB,999367,7837,2166,102,52,22*USA,783133,6113,1814,125,33,16*FUA,534341,10290,1606,424,554,35*LDC,495464,4432,1199,73,36,10*TFA,437496,2866,998,68,8,6*PPP,347358,3096,821,52,28,2*GOAT,224592,2229,504,37,39,22*GAT,100949,923,279,17,5,8*MFB,98567,2139,310,44,187,14*NONE,45564,3093,369,58,232,35*DTP,38145,387,95,7,4,6*WAR,21408,161,57,4,0,10*9NjA,11815,198,32,3,15,3*bleu,6484,55,13,0,1,6*31,123,2,0,0,0,1*";
$clan = explode("*", $string);
foreach($clan as $val){
$stats[] = explode(",",$val);
}
echo "<pre>";
print_r($stats);
echo "</pre>";
?>