No, that's it as far as I'm aware.
My host moved me to a new server last night and now i get:
Warning: Invalid argument supplied for foreach() in /home/defcon1c/public_html/stats/index.php on line 71
on my script!
Could this be a permission problem?
Warning: Invalid argument supplied for foreach() in /home/defcon1c/public_html/stats/index.php on line 71
on my script!
Could this be a permission problem?
Even using chuy's script i get:
ERRORS: Your cache directory (<code>/home/defcon1c/public_html/stats/cache</code>) exists, but is not world writable (777). I couldn't make it so. Please do this by hand.
Cache testing failed. You must keep a local cache of the XML data around.
I'm getting this although my cache directory IS set to 777!
ERRORS: Your cache directory (<code>/home/defcon1c/public_html/stats/cache</code>) exists, but is not world writable (777). I couldn't make it so. Please do this by hand.
Cache testing failed. You must keep a local cache of the XML data around.
I'm getting this although my cache directory IS set to 777!
If you're sure the cache directory exist and is 0777, then find the function called test_cache() in the API. You should see something like the following:
Change this to:
Some web hosts disable core PHP functions, this may be what your problem is. My host does this. So I won't be renewing in sept. Fuck 'em.
Give this a shot and see what happens.
Code:
function test_cache() { if( isset($this->has_cache) ) return $this->has_cache;
Code:
function test_cache() { if( isset($this->has_cache) ) return $this->has_cache; $this->has_cache = true; return $this->has_cache;
Give this a shot and see what happens.
it worked! Thanks NM156!
Bit strange that my old server (US - same host) worked fine with it but the new server (AU) doesnt!
Bit strange that my old server (US - same host) worked fine with it but the new server (AU) doesnt!
Yup, that happens sometimes. You might want to contact their support to find out why you can't use the native 'chmod' function in your scripts.
Glad it worked!
Glad it worked!
Is there a way for the script on a curtain amount of day (like every 6 hours) for it to go to each members bf2s profile, then have the stats update, because I have to keep going to each members pages manually to keep them updated. When I go to my stats page, its just showing the stats the member has at bf2s, not the official stats (meaning, it doesnt update the players stats @ bf2s, it uses there outdated stats..)
Anyone?
not exactly sure what you mean. the script will refresh the stats on you're website every 6 hours from the stats database on bf2s. that will cause an update on those stats from EA. by the time of the next request from you're site (6 hours later) they should have updated on bf2s so you'll get the latest stats bf2s has. that in turn will cause another update. basically each time the script requests the XML from bf2s that causes an update. meaning that theoretically the oldest the stats the script retrieves from bf2s would be is 6 hours old from the 'official' ones. make sense?
official xml feed sample:
Code:
<?xml version="1.0" encoding="utf-8"?> <Detail> <asof>5/24/2006 1:44:51 AM</asof> <Player ProfileID="43917103" AccountName="tf-Hitman" CountryCode="US" Rank="8" Score="49649" Wins="1238" Losses="598" TotalTime="1485345" EnlistedDate="2005-06-15T08:16:00" LastGameDate="2006-05-22T05:49:00" Complete="1146" Incomplete="694" FavKit="0" FavKitTime="302604" FavVehicle="3" FavVehicleTime="293871" FavWeap="0" FavWeapTime="164711" FavEquip="1" FavEquipKills="25437" FavExp="-1" FavExpKills="0" FavMap="4" FavMapTime="245739" BestScore="208" BestScoreMap="6" TeamScore="16664" TeamKills="731" TeamDmg="339" TeamVDmg="274" CombatScore="32216" CPCapture="3769" CPAssist="2687" CPDefend="907" Heal="383" Revive="958" Resupply="438" Repair="145" TargetEnemy="0" DriverSpecial="4747" DriverKAssist="0" TotalShots="133273" TotalHits="29703" TotalKills="16108" KillAssists="1983" TotalDeaths="9737" Suicides="473" KillStreak="46" DeathStreak="11" TopVictimPid="43596155" TopVictim="tF-afrojap" TopVictimKills="15" TopVictimRank="16" TopOpponentPid="45280390" TopOpponent="SEV25" TopOppDeaths="10" TopOpponentRank="17" COScore="2446" COTime="64737" SLTime="538952" SMTime="663665" LWTime="217097" ChuteTime="2336" Kicked="42" Banned="3" /> <Armies army="0" totaltime="563945" wins="464" losses="218" highscore="167" /> <Armies army="1" totaltime="513462" wins="435" losses="216" highscore="208" /> <Armies army="2" totaltime="230967" wins="192" losses="76" highscore="134" /> <Armies army="3" totaltime="34945" wins="28" losses="9" highscore="82" /> <Armies army="4" totaltime="29794" wins="21" losses="19" highscore="109" /> <Armies army="5" totaltime="24011" wins="26" losses="9" highscore="66" /> <Armies army="6" totaltime="40243" wins="34" losses="24" highscore="71" /> <Armies army="7" totaltime="10839" wins="12" losses="4" highscore="78" /> <Armies army="8" totaltime="33534" wins="23" losses="19" highscore="76" /> <Armies army="9" totaltime="3516" wins="3" losses="4" highscore="53" /> <Maps mapid="0" highscore="86" wins="67" losses="23" totaltime="88166" complete="59" incomplete="31" fullgames="0" /> <Maps mapid="1" highscore="124" wins="133" losses="66" totaltime="115508" complete="130" incomplete="69" fullgames="0" /> <Maps mapid="2" highscore="98" wins="104" losses="43" totaltime="141579" complete="94" incomplete="53" fullgames="0" /> <Maps mapid="3" highscore="52" wins="28" losses="11" totaltime="33047" complete="26" incomplete="13" fullgames="0" /> <Maps mapid="4" highscore="178" wins="225" losses="107" totaltime="245739" complete="198" incomplete="134" fullgames="0" /> <Maps mapid="5" highscore="113" wins="128" losses="69" totaltime="170299" complete="114" incomplete="83" fullgames="0" /> <Maps mapid="6" highscore="208" wins="111" losses="59" totaltime="140997" complete="105" incomplete="65" fullgames="0" /> <Maps mapid="10" highscore="40" wins="2" losses="0" totaltime="2025" complete="2" incomplete="0" fullgames="0" /> <Maps mapid="11" highscore="53" wins="3" losses="3" totaltime="4262" complete="1" incomplete="5" fullgames="0" /> <Maps mapid="99" highscore="50" wins="2" losses="2" totaltime="3053" complete="2" incomplete="2" fullgames="0" /> <Maps mapid="100" highscore="70" wins="52" losses="19" totaltime="59508" complete="52" incomplete="19" fullgames="0" /> <Maps mapid="101" highscore="80" wins="35" losses="15" totaltime="41857" complete="36" incomplete="15" fullgames="0" /> <Maps mapid="102" highscore="90" wins="36" losses="27" totaltime="50141" complete="37" incomplete="26" fullgames="0" /> <Maps mapid="103" highscore="54" wins="44" losses="14" totaltime="47465" complete="41" incomplete="19" fullgames="0" /> <Maps mapid="105" highscore="167" wins="49" losses="20" totaltime="57136" complete="49" incomplete="21" fullgames="0" /> <Maps mapid="110" highscore="41" wins="3" losses="2" totaltime="2984" complete="4" incomplete="1" fullgames="0" /> <Maps mapid="300" highscore="82" wins="39" losses="14" totaltime="41895" complete="31" incomplete="22" fullgames="0" /> <Maps mapid="301" highscore="70" wins="10" losses="11" totaltime="16943" complete="14" incomplete="7" fullgames="0" /> <Maps mapid="302" highscore="76" wins="9" losses="6" totaltime="11901" complete="9" incomplete="6" fullgames="0" /> <Maps mapid="303" highscore="109" wins="27" losses="28" totaltime="42377" complete="21" incomplete="34" fullgames="0" /> <Maps mapid="304" highscore="71" wins="13" losses="8" totaltime="16357" complete="13" incomplete="8" fullgames="0" /> <Maps mapid="305" highscore="66" wins="13" losses="4" totaltime="10208" complete="11" incomplete="6" fullgames="0" /> <Maps mapid="306" highscore="78" wins="8" losses="4" totaltime="10228" complete="9" incomplete="3" fullgames="0" /> <Maps mapid="307" highscore="76" wins="25" losses="9" totaltime="23469" complete="27" incomplete="7" fullgames="0" /> <Maps mapid="601" highscore="134" wins="72" losses="34" totaltime="108201" complete="61" incomplete="45" fullgames="0" /> <Vehicles cat="0" totaltime="185500" kills="3338" deaths="685" shots="0" hits="0" roadkills="265" /> <Vehicles cat="1" totaltime="104395" kills="1461" deaths="433" shots="0" hits="0" roadkills="128" /> <Vehicles cat="2" totaltime="18081" kills="246" deaths="103" shots="0" hits="0" roadkills="39" /> <Vehicles cat="3" totaltime="293871" kills="3109" deaths="1416" shots="0" hits="0" roadkills="312" /> <Vehicles cat="4" totaltime="102140" kills="778" deaths="617" shots="0" hits="0" roadkills="236" /> <Vehicles cat="6" totaltime="6932" kills="134" deaths="82" shots="0" hits="0" roadkills="10" /> <Weapons cat="0" totaltime="164711" kills="2007" deaths="1430" shots="44033" hits="8995" /> <Weapons cat="1" totaltime="14590" kills="195" deaths="169" shots="809" hits="422" /> <Weapons cat="2" totaltime="93361" kills="734" deaths="776" shots="20861" hits="4395" /> <Weapons cat="3" totaltime="46710" kills="418" deaths="508" shots="22438" hits="3689" /> <Weapons cat="4" totaltime="84001" kills="598" deaths="421" shots="3289" hits="1478" /> <Weapons cat="5" totaltime="44516" kills="392" deaths="444" shots="10451" hits="2210" /> <Weapons cat="6" totaltime="95094" kills="832" deaths="927" shots="4179" hits="2203" /> <Weapons cat="7" totaltime="20255" kills="173" deaths="208" shots="8356" hits="1157" /> <Weapons cat="8" totaltime="79944" kills="909" deaths="887" shots="7802" hits="826" /> <Weapons cat="9" totaltime="7207" kills="272" deaths="138" shots="802" hits="271" /> <Weapons cat="10" totaltime="5468" kills="23" deaths="106" shots="1260" hits="981" /> <Weapons cat="11" totaltime="31150" kills="631" deaths="357" shots="5129" hits="1985" /> <Weapons cat="12" totaltime="15311" kills="505" deaths="181" shots="3864" hits="1091" /> <Weapons cat="13" totaltime="948" kills="0" deaths="0" shots="0" hits="0" /> <Equipment cat="0" totaltime="7207" kills="272" deaths="138" deployed="0" /> <Equipment cat="1" totaltime="25437" kills="441" deaths="286" deployed="0" /> <Equipment cat="2" totaltime="3708" kills="144" deaths="26" deployed="0" /> <Equipment cat="3" totaltime="15311" kills="505" deaths="181" deployed="0" /> <Equipment cat="4" totaltime="5468" kills="23" deaths="106" deployed="0" /> <Equipment cat="5" totaltime="2005" kills="46" deaths="45" deployed="0" /> <Equipment cat="6" totaltime="1168" kills="0" deaths="0" deployed="154" /> <Equipment cat="7" totaltime="0" kills="0" deaths="0" deployed="190" /> <Equipment cat="8" totaltime="948" kills="0" deaths="0" deployed="138" /> <Kits kit="0" totaltime="302604" kills="3753" deaths="2415" /> <Kits kit="1" totaltime="82721" kills="967" deaths="604" /> <Kits kit="2" totaltime="178544" kills="2149" deaths="932" /> <Kits kit="3" totaltime="264649" kills="3242" deaths="2048" /> <Kits kit="4" totaltime="277201" kills="2793" deaths="1795" /> <Kits kit="5" totaltime="124429" kills="1289" deaths="852" /> <Kits kit="6" totaltime="187091" kills="1915" deaths="1091" /> <Medals medal="2020719" awardcount="1" firsttime="1146894229" lasttime="1146894229" /> <Medals medal="2021403" awardcount="1" firsttime="1146894229" lasttime="1146894229" /> <Medals medal="2051902" awardcount="175" firsttime="1119696329" lasttime="1148253467" /> <Medals medal="2051907" awardcount="193" firsttime="1119669051" lasttime="1148109024" /> <Medals medal="2051919" awardcount="157" firsttime="1119753217" lasttime="1148252561" /> <Medals medal="2190703" awardcount="1" firsttime="1137731867" lasttime="1137731867" /> <Ribbons ribbon="3040109" awardtime="1121486751" /> <Ribbons ribbon="3040718" awardtime="1141614639" /> <Ribbons ribbon="3150914" awardtime="1119869928" /> <Ribbons ribbon="3151920" awardtime="1121066826" /> <Ribbons ribbon="3190105" awardtime="1124078134" /> <Ribbons ribbon="3190118" awardtime="1142118518" /> <Ribbons ribbon="3190318" awardtime="1119698393" /> <Ribbons ribbon="3190409" awardtime="1129609467" /> <Ribbons ribbon="3190605" awardtime="1128744957" /> <Ribbons ribbon="3190803" awardtime="1119875125" /> <Ribbons ribbon="3191305" awardtime="1128527629" /> <Ribbons ribbon="3211305" awardtime="1120433680" /> <Ribbons ribbon="3212201" awardtime="1124427192" /> <Ribbons ribbon="3240102" awardtime="1121600116" /> <Ribbons ribbon="3240301" awardtime="1119696328" /> <Ribbons ribbon="3240703" awardtime="1128530033" /> <Ribbons ribbon="3241213" awardtime="1134846513" /> <Ribbons ribbon="3260318" awardtime="1133938747" /> <Badges badge="1031105" badgelevel="1" awardtime="1119672166" /> <Badges badge="1031109" badgelevel="1" awardtime="1120444158" /> <Badges badge="1031113" badgelevel="1" awardtime="1120129789" /> <Badges badge="1031115" badgelevel="1" awardtime="1119676846" /> <Badges badge="1031119" badgelevel="1" awardtime="1121405660" /> <Badges badge="1031120" badgelevel="1" awardtime="1119754956" /> <Badges badge="1031121" badgelevel="1" awardtime="1121400717" /> <Badges badge="1031406" badgelevel="1" awardtime="1120129789" /> <Badges badge="1031619" badgelevel="1" awardtime="1121389536" /> <Badges badge="1031923" badgelevel="1" awardtime="1121247149" /> <Badges badge="1032415" badgelevel="1" awardtime="1121548871" /> <Badges badge="1190304" badgelevel="1" awardtime="1120131366" /> <Badges badge="1190507" badgelevel="1" awardtime="1121564383" /> <Badges badge="1190601" badgelevel="1" awardtime="1121517782" /> <Badges badge="1191819" badgelevel="1" awardtime="1121511703" /> <Badges badge="1220104" badgelevel="1" awardtime="1121411216" /> <Badges badge="1220118" badgelevel="1" awardtime="1119676846" /> <Badges badge="1220122" badgelevel="1" awardtime="1120441148" /> <Badges badge="1220803" badgelevel="1" awardtime="1119698393" /> <Badges badge="1222016" badgelevel="1" awardtime="1121566976" /> <Badges badge="1260602" badgelevel="1" awardtime="1132744432" /> <Badges badge="1260708" badgelevel="1" awardtime="1134290681" /> <Badges badge="1261105" badgelevel="1" awardtime="1133063506" /> <Badges badge="1261109" badgelevel="1" awardtime="1132744432" /> <Badges badge="1261113" badgelevel="1" awardtime="1132717811" /> <Badges badge="1261115" badgelevel="1" awardtime="1132800572" /> <Badges badge="1261119" badgelevel="1" awardtime="1132716659" /> <Badges badge="1261120" badgelevel="1" awardtime="1133046635" /> <Badges badge="1261121" badgelevel="1" awardtime="1133847916" /> <Badges badge="1262612" badgelevel="1" awardtime="1132742542" /> <Badges badge="1031105" badgelevel="2" awardtime="1132518676" /> <Badges badge="1031109" badgelevel="2" awardtime="1128575526" /> <Badges badge="1031113" badgelevel="2" awardtime="1128575526" /> <Badges badge="1031115" badgelevel="2" awardtime="1128574645" /> <Badges badge="1031119" badgelevel="2" awardtime="1134551476" /> <Badges badge="1031120" badgelevel="2" awardtime="1128577494" /> <Badges badge="1031121" badgelevel="2" awardtime="1133847916" /> <Badges badge="1031406" badgelevel="2" awardtime="1132547643" /> <Badges badge="1031619" badgelevel="2" awardtime="1129007880" /> <Badges badge="1032415" badgelevel="2" awardtime="1135854059" /> <Badges badge="1190304" badgelevel="2" awardtime="1129091585" /> <Badges badge="1190507" badgelevel="2" awardtime="1132525595" /> <Badges badge="1190601" badgelevel="2" awardtime="1143284686" /> <Badges badge="1191819" badgelevel="2" awardtime="1136184566" /> <Badges badge="1261109" badgelevel="2" awardtime="1132744432" /> <Badges badge="1261113" badgelevel="2" awardtime="1134628375" /> <Badges badge="1261115" badgelevel="2" awardtime="1132800572" /> <Badges badge="1261120" badgelevel="2" awardtime="1133046635" /> <Badges badge="1261121" badgelevel="2" awardtime="1133847916" /> <Badges badge="1031406" badgelevel="3" awardtime="1133670099" /> <Badges badge="1032415" badgelevel="3" awardtime="1135920457" /> <Unlock ID="11" Kit="0" Name="Anti-Tank" Description="Chsht_protecta" /> <Unlock ID="22" Kit="1" Name="Assault" Description="Usrif_g3a3" /> <Unlock ID="44" Kit="3" Name="Medic" Description="Usrif_sa80" /> <Unlock ID="55" Kit="4" Name="Spec-Ops" Description="Usrif_g36c" /> <Unlock ID="66" Kit="5" Name="Support" Description="RULMG_PKM" /> <Unlock ID="77" Kit="6" Name="Sniper" Description="USSNI_M95_Barret" /> <Unlock ID="88" Kit="1" Name="Assault" Description="sasrif_fn2000" /> <Unlock ID="111" Kit="3" Name="Medic" Description="sasrif_g36e" /> <Unlock ID="222" Kit="4" Name="Spec-Ops" Description="usrif_scarl" /> <Unlock ID="333" Kit="5" Name="Support" Description="sasrif_mg36" /> <Unlock ID="444" Kit="0" Name="Anti-Tank" Description="eurif_fnp90" /> <Unlock ID="555" Kit="6" Name="Sniper" Description="gbrif_l96a1" /> </Detail>
If anyone is interested in a leaderboard for ASP.NET 2.0 and SQL Server, let me know.
I will post at request because my guess is that there are not many ppl out there running ASP.NET 2.0 and SQL Server for a clansite
I will post at request because my guess is that there are not many ppl out there running ASP.NET 2.0 and SQL Server for a clansite
Hey man I would to take a look at that one, if you have a chance dropt it at: leTuss [at] gmail [dot] comJeinhor wrote:
If anyone is interested in a leaderboard for ASP.NET 2.0 and SQL Server, let me know.
I will post at request because my guess is that there are not many ppl out there running ASP.NET 2.0 and SQL Server for a clansite
Thnx
They also provide feeds for server status if you have game-servers.KillinSprE wrote:
Awesome. Thanks. So does game-monitor.com do anything else other than show online/offline? eg: get more detailed stats? I signed up for one of the larger packages and so far I'm not impresses
We have 3 sources of info on our servers GM being one of them.
I use their XML feed for the buddylist (obviously) as well as the server tracker on the main pages where this is not provided by the server host (as this is closer to real-time than GM). If you follow one of the links to a server details page the graphs there are also fed from GM.
Yeah, I got all excited thinking you had expanded the scope of the XML feed for a minute there!Viper007Bond wrote:
That was a random post... o_Ochuyskywalker wrote:
official xml feed sample:
[snip]
Last edited by duffry (2006-05-28 02:52:09)
While I stand by the coolness of this I have now passed the 64 members mark and found that the table only goes up to 64, I realise that the 'easy' way to solve this would be to have more than one table but that leaves me with 2 problems...duffry wrote:
Wow!chuyskywalker wrote:
It's 3 requests every 6 hours, thus you could do 3 different 64 players feeds in the 6 hour period to support up to a 192 player clan.
Cool.
ta
1, I populate the list of pids from our members table and would need to find a means of splitting based on the data there (should be easy enough but...)
2, the idea is obviously to compare members against each other and splitting them into tables based on anything other than the stats doesn't seem quite right.
so:
Can anyone think of a way I can retrieve the 'extra' player details as above but still throw them into one table?
TIA
Already covered. Check page 14 of this post. The trick is that you can only query 64 player stats at a time. So, you would have to create functionality to request only 64 of the total at a time. Then save those values to a flat file or a database. Then the next time you make a request, query the ones that weren't queried before and grab the saved data for the others.duffry wrote:
Can anyone think of a way I can retrieve the 'extra' player details as above but still throw them into one table?
Have you checked this out -> http://forums.bf2s.com/viewtopic.php?id=9672 ? ...
I think your clan needs some more brackets "[]" in its name.Jenspm wrote:
Thanks for the link man...
YaY, I made it: http://clan-alpha.com/clanleaderboard/index.php
I'm after an XML feed for player stats that I can use on my own site -- does anyone know of one please?