Skocz do zawartości
"Idzie nowe..." - o zmianach i nie tylko ×
Przeniesienie zakupów z IPS Marketplace / Moving bought items from IPS Marketplace ×

Rekomendowane odpowiedzi

Opublikowano

Niestety plik rctsteam.txt się nie utworzył, a oto error jaki znajduje się w zakładce steam:

Warning: fopen(/var/www/vhosts/Grajkownia.com/httpdocs/admin/../rctsteam.txt) [function.fopen]: failed to open stream: Permission denied in /var/www/vhosts/Grajkownia.com/httpdocs/admin/applications_addon/other/rctsteam/sources/classes/class_rctsteam.php  on line 97
array(19) { ["steamID64"]=> string(0) "" ["steamID"]=> string(0) "" ["onlineState"]=> string(0) "" ["stateMessage"]=> string(0) "" ["privacyState"]=> string(0) "" ["visibilityState"]=> string(0) "" ["avatarIcon"]=> string(0) "" ["avatarMedium"]=> string(0) "" ["avatarFull"]=> string(0) "" ["vacBanned"]=> string(0) "" ["isLimitedAccount"]=> string(0) "" ["customURL"]=> string(0) "" ["memberSince"]=> string(0) "" ["steamRating"]=> string(0) "" ["hoursPlayed2Wk"]=> string(0) "" ["headline"]=> string(0) "" ["location"]=> string(0) "" ["realname"]=> string(0) "" ["summary"]=> string(0) "" } array(3) { [0]=> array(2) { ["link"]=> string(0) "" ["title"]=> string(0) "" } [1]=> array(2) { ["link"]=> string(0) "" ["title"]=> string(0) "" } [2]=> array(2) { ["link"]=> string(0) "" ["title"]=> string(0) "" } } array(1) { [0]=> array(7) { ["gameName"]=> string(0) "" ["gameLink"]=> string(0) "" ["gameIcon"]=> string(0) "" ["gameLogo"]=> string(0) "" ["gameLogoSmall"]=> string(0) "" ["hoursPlayed"]=> string(0) "" ["hoursOnRecord"]=> string(0) "" } } array(3) { [0]=> array(13) { ["groupID64"]=> string(0) "" ["groupName"]=> string(0) "" ["groupURL"]=> string(0) "" ["headline"]=> string(0) "" ["summary"]=> string(0) "" ["avatarIcon"]=> string(0) "" ["avatarMedium"]=> string(0) "" ["avatarFull"]=> string(0) "" ["memberCount"]=> string(0) "" ["membersInChat"]=> string(0) "" ["membersInGame"]=> string(0) "" ["membersOnline"]=> string(0) "" ["isPrimary"]=> object(SimpleXMLElement)#128 (1) { [0]=> string(1) "0" } } [1]=> array(13) { ["groupID64"]=> string(0) "" ["groupName"]=> string(0) "" ["groupURL"]=> string(0) "" ["headline"]=> string(0) "" ["summary"]=> string(0) "" ["avatarIcon"]=> string(0) "" ["avatarMedium"]=> string(0) "" ["avatarFull"]=> string(0) "" ["memberCount"]=> string(0) "" ["membersInChat"]=> string(0) "" ["membersInGame"]=> string(0) "" ["membersOnline"]=> string(0) "" ["isPrimary"]=> object(SimpleXMLElement)#101 (1) { [0]=> string(1) "1" } } [2]=> array(13) { ["groupID64"]=> string(0) "" ["groupName"]=> string(0) "" ["groupURL"]=> string(0) "" ["headline"]=> string(0) "" ["summary"]=> string(0) "" ["avatarIcon"]=> string(0) "" ["avatarMedium"]=> string(0) "" ["avatarFull"]=> string(0) "" ["memberCount"]=> string(0) "" ["membersInChat"]=> string(0) "" ["membersInGame"]=> string(0) "" ["membersOnline"]=> string(0) "" ["isPrimary"]=> object(SimpleXMLElement)#114 (1) { [0]=> string(1) "0" } } } array(6) { [0]=> array(9) { ["steamID64"]=> string(0) "" ["steamID"]=> string(0) "" ["customURL"]=> string(0) "" ["onlineState"]=> string(0) "" ["stateMessage"]=> string(0) "" ["avatarIcon"]=> string(0) "" ["avatarMedium"]=> string(0) "" ["avatarFull"]=> string(0) "" ["friendsSince"]=> bool(false) } [1]=> array(9) { ["steamID64"]=> string(0) "" ["steamID"]=> string(0) "" ["customURL"]=> string(0) "" ["onlineState"]=> string(0) "" ["stateMessage"]=> string(0) "" ["avatarIcon"]=> string(0) "" ["avatarMedium"]=> string(0) "" ["avatarFull"]=> string(0) "" ["friendsSince"]=> bool(false) } [2]=> array(9) { ["steamID64"]=> string(0) "" ["steamID"]=> string(0) "" ["customURL"]=> string(0) "" ["onlineState"]=> string(0) "" ["stateMessage"]=> string(0) "" ["avatarIcon"]=> string(0) "" ["avatarMedium"]=> string(0) "" ["avatarFull"]=> string(0) "" ["friendsSince"]=> bool(false) } [3]=> array(9) { ["steamID64"]=> string(0) "" ["steamID"]=> string(0) "" ["customURL"]=> string(0) "" ["onlineState"]=> string(0) "" ["stateMessage"]=> string(0) "" ["avatarIcon"]=> string(0) "" ["avatarMedium"]=> string(0) "" ["avatarFull"]=> string(0) "" ["friendsSince"]=> bool(false) } [4]=> array(9) { ["steamID64"]=> string(0) "" ["steamID"]=> string(0) "" ["customURL"]=> string(0) "" ["onlineState"]=> string(0) "" ["stateMessage"]=> string(0) "" ["avatarIcon"]=> string(0) "" ["avatarMedium"]=> string(0) "" ["avatarFull"]=> string(0) "" ["friendsSince"]=> bool(false) } [5]=> array(9) { ["steamID64"]=> string(0) "" ["steamID"]=> string(0) "" ["customURL"]=> string(0) "" ["onlineState"]=> string(0) "" ["stateMessage"]=> string(0) "" ["avatarIcon"]=> string(0) "" ["avatarMedium"]=> string(0) "" ["avatarFull"]=> string(0) "" ["friendsSince"]=> bool(false) } } 

Opublikowano

No i tu się dzieje coś dziwnego. Niby ładnie to trawi ale sobie nie radzi.

Przykład.

object(SimpleXMLElement)#106 (1) {
 [0]=>
 string(17) "76561198002230331"
}

string(9) "steamID64"

NULL

string(0) ""

4 kolejne wartości: $k{czyli kolejny element}, $k->getName(){nazwa elementu}, $k[0]{pierwsza wartość elementu}, trim($k[0])){obcięta pierwsza wartość elementu};

w $k widać że jest [0]=> string(17) "76561198002230331", czyli pierwszy element ma wartość "76561198002230331" == OK

$k->getName() daję ładnie nazwę "steamID64" == OK

ale $k[0] nie pobiera się, chociaż w $k widać że jest ta wartość.

Chcesz to przetestuj ten kod:

<?php
$xml = simplexml_load_file("http://steamcommunity.com/profiles/76561198002230331?xml=1");

$vals = array();
RecurseXML($xml,$vals);

foreach($vals as $key=>$value)
 print("{$key} = {$value}<BR>\n");

function RecurseXML($xml,&$vals,$parent="") {
 $childs=0;
 $child_count=-1; # Not realy needed.
 $arr=array();
foreach ($xml->children() as $key=>$value) {
	if (in_array($key,$arr)) {
		$child_count++;
	} else {
		$child_count=0;
	}
	$arr[]=$key;
	$k=($parent == "") ? "$key.$child_count" : "$parent.$key.$child_count";
	$childs=RecurseXML($value,$vals,$k);
	if ($childs==0) {
		$vals[$k]= (string)$value;
	}
}
 return $childs;
}
?>

Powinien wyświetlić coś jak:

steamID64.0 = 76561198002230331
steamID.0 = Grajkownia.com | haerde
onlineState.0 = offline
stateMessage.0 = Last Online: 1 hrs, 10 mins ago
privacyState.0 = public
visibilityState.0 = 3
avatarIcon.0 = http://media.steampowered.com/steamcommunity/public/images/avatars/7f/7fc364f2d4fbd8ee33bb445b3da93433fa76fa08.jpg
avatarMedium.0 = http://media.steampowered.com/steamcommunity/public/images/avatars/7f/7fc364f2d4fbd8ee33bb445b3da93433fa76fa08_medium.jpg
avatarFull.0 = http://media.steampowered.com/steamcommunity/public/images/avatars/7f/7fc364f2d4fbd8ee33bb445b3da93433fa76fa08_full.jpg
vacBanned.0 = 0
isLimitedAccount.0 = 0
customURL.0 = haerde
memberSince.0 = November 1, 2008
steamRating.0 = 0.2
hoursPlayed2Wk.0 = 0.7
headline.0 = Satanicus Sacramentum Muerte!
location.0 = Nysa, Opole, Poland
realname.0 = Oskar Elll

Ale znając życie nie będzie u ciebie żadnych wartości, czyli będzie coś jak:

steamID64.0 = 
steamID.0 = 
onlineState.0 = 
stateMessage.0 = 
privacyState.0 = 
visibilityState.0 = 
avatarIcon.0 = 
avatarMedium.0 = 
avatarFull.0 = 
vacBanned.0 = 
isLimitedAccount.0 = 
customURL.0 = 
memberSince.0 = 
steamRating.0 = 
hoursPlayed2Wk.0 = 
headline.0 = 
location.0 = 
realname.0 = 

Opublikowano

Dziwne ... wszystko niby działa. Oto zawartość zakładki steam:

array(19) { ["steamID64"]=>  string(17) "76561198002230331" ["steamID"]=>  string(23) "Grajkownia.com | haerde" ["onlineState"]=>  string(7) "offline" ["stateMessage"]=>  string(31) "Last Online: 2 hrs, 58 mins ago" ["privacyState"]=>  string(6) "public" ["visibilityState"]=>  string(1) "3" ["avatarIcon"]=>  string(114) "http://media.steampowered.com/steamcommunity/public/images/avatars/7f/7fc364f2d4fbd8ee33bb445b3da93433fa76fa08.jpg" ["avatarMedium"]=>  string(121) "http://media.steampowered.com/steamcommunity/public/images/avatars/7f/7fc364f2d4fbd8ee33bb445b3da93433fa76fa08_medium.jpg" ["avatarFull"]=>  string(119) "http://media.steampowered.com/steamcommunity/public/images/avatars/7f/7fc364f2d4fbd8ee33bb445b3da93433fa76fa08_full.jpg" ["vacBanned"]=>  string(1) "0" ["isLimitedAccount"]=>  string(1) "0" ["customURL"]=>  string(6) "haerde" ["memberSince"]=>  string(16) "November 1, 2008" ["steamRating"]=>  string(3) "0.2" ["hoursPlayed2Wk"]=>  string(3) "0.7" ["headline"]=>  string(29) "Satanicus Sacramentum Muerte!" ["location"]=>  string(19) "Nysa, Opole, Poland" ["realname"]=>  string(10) "Oskar Elll" ["summary"]=>  string(243) ""Wake up and face me, don’t play dead cause maybe
Someday I’ll walk away and say, “You disappoint me,”
Maybe you’re better off this way"

A Perfect Circle - Passive



oCb forever in my heart!" } array(3) { [0]=> array(2) { ["link"]=> string(35) "http://www.esl.eu/de/player/1506745" ["title"]=> string(11) "ESL Profile" } [1]=> array(2) { ["link"]=> string(28) "http://www.egamers-zone.com/" ["title"]=> string(15) "My homesite ;-)" } [2]=> array(2) { ["link"]=> string(30) "http://www.lastfm.pl/user/sh3n" ["title"]=> string(10) "My Last.fm" } } array(1) { [0]=> array(7) { ["gameName"]=> string(14) "Counter-Strike" ["gameLink"]=> string(36) "http://store.steampowered.com/app/10" ["gameIcon"]=> string(111) "http://media.steampowered.com/steamcommunity/public/images/apps/10/6b0312cda02f5f777efa2f3318c307ff9acafbb5.jpg" ["gameLogo"]=> string(111) "http://media.steampowered.com/steamcommunity/public/images/apps/10/af890f848dd606ac2fd4415de3c3f5e7a66fcb9f.jpg" ["gameLogoSmall"]=> string(111) "http://media.steampowered.com/steamcommunity/public/images/apps/10/dc97d7c8ae3a417cbb09fed1dcfb3204b7a2766b.jpg" ["hoursPlayed"]=> string(3) "0.7" ["hoursOnRecord"]=> string(5) "442.1" } } array(3) { [0]=> array(13) { ["groupID64"]=> string(18) "103582791430330915" ["groupName"]=> string(15) "ZERO TOLERANCJI" ["groupURL"]=> string(14) "zerotolerancji" ["headline"]=> string(17) "ZERO TOLERANCJI !" ["summary"]=> string(209) "Jesli jestes j**anym rasista, odznaczasz sie j**anym antysemityzmem, nie nawidzisz j**anych czarnuchow i pier**lonych mydlowcow to dolacz do grupy !



SIEG HAIL sk***ysyny !

666" ["avatarIcon"]=> string(114) "http://media.steampowered.com/steamcommunity/public/images/avatars/f0/f05a3b6e257e1dab3b7644e91acbc779fb879ac3.jpg" ["avatarMedium"]=> string(121) "http://media.steampowered.com/steamcommunity/public/images/avatars/f0/f05a3b6e257e1dab3b7644e91acbc779fb879ac3_medium.jpg" ["avatarFull"]=> string(119) "http://media.steampowered.com/steamcommunity/public/images/avatars/f0/f05a3b6e257e1dab3b7644e91acbc779fb879ac3_full.jpg" ["memberCount"]=> string(1) "6" ["membersInChat"]=> string(1) "0" ["membersInGame"]=> string(1) "0" ["membersOnline"]=> string(1) "1" ["isPrimary"]=> string(1) "0" } [1]=> array(13) { ["groupID64"]=> string(18) "103582791430512483" ["groupName"]=> string(16) "CS-Grajkownia.pl" ["groupURL"]=> string(11) "Grajkownia2" ["headline"]=> string(54) "Oficjalna grupa STEAM spolecznosci serwerów Grajkowni" ["summary"]=> string(1414) "Witajcie !

Grupa ta ma na celu zrzeszenie wszystkich 'Grajków' posiadajcych STEAM'a. Bede starac sie przygotowywac dla Was jak najwiecej eventow i konkursow, oraz w miare mozliwosci o wszystkim informowac na biezaco poprzez ogloszenia.



Serwer BF2:

» IP: 195.114.0.91:27043 - NOWE IP!
» Sloty: 23+1 rezerwowy!
» Czas C4: 35 sekund
» Czas Trwania Rundy: 2,5 minuty
» Czas Trwania Mapy: 20 minut
» Opiekun: DEwek, haerde
» FriendlyFire: OFF

Serwer Death Run:

» IP: 83.1.164.122:27038
» Sloty: 20 +1 rezerwowy
» Czas Trwania Rundy: b/o
» Czas Trwania Mapy: 20 minut
» Opiekun: MaTT

Serwer GunGame + Deathmatch

» IP: 195.114.0.182:27039
» Sloty: 19 +1 rezerwowy
» Czas Trwania Rundy: 3minuty
» Czas Trwania Mapy: 30 minut
» Opiekun: DEwek, haerde
» FriendlyFire: ON

Serwer FFA (Free for all)

» IP: 83.1.164.122:27038
» Sloty: 20 +1 rezerwowy
» Czas Trwania Rundy: 1:45min
» Czas Trwania Mapy: 20min
» Opiekun: DEwek, haerde
» FriendlyFire: OFF

Serwer DiabloMod - NOWY SERWER!

» IP: 195.114.0.91:27045
» Sloty: 15+1 rezerwowy
» Czas Trwania Rundy: 1:45min
» Czas Trwania Mapy: 20min
» Opiekun: DEwek, haerde
» FriendlyFire: OFF" ["avatarIcon"]=> string(114) "http://media.steampowered.com/steamcommunity/public/images/avatars/f4/f4555ccba33510d83d8eff744d78227b018e3b2e.jpg" ["avatarMedium"]=> string(121) "http://media.steampowered.com/steamcommunity/public/images/avatars/f4/f4555ccba33510d83d8eff744d78227b018e3b2e_medium.jpg" ["avatarFull"]=> string(119) "http://media.steampowered.com/steamcommunity/public/images/avatars/f4/f4555ccba33510d83d8eff744d78227b018e3b2e_full.jpg" ["memberCount"]=> string(3) "300" ["membersInChat"]=> string(1) "0" ["membersInGame"]=> string(2) "34" ["membersOnline"]=> string(2) "88" ["isPrimary"]=> string(1) "1" } [2]=> array(13) { ["groupID64"]=> string(18) "103582791431012517" ["groupName"]=> string(14) "Grajkownia.com" ["groupURL"]=> string(10) "Grajkownia" ["headline"]=> string(0) "" ["summary"]=> string(21) "No information given." ["avatarIcon"]=> string(114) "http://media.steampowered.com/steamcommunity/public/images/avatars/fe/fef49e7fa7e1997310d705b2a6158ff8dc1cdfeb.jpg" ["avatarMedium"]=> string(121) "http://media.steampowered.com/steamcommunity/public/images/avatars/fe/fef49e7fa7e1997310d705b2a6158ff8dc1cdfeb_medium.jpg" ["avatarFull"]=> string(119) "http://media.steampowered.com/steamcommunity/public/images/avatars/fe/fef49e7fa7e1997310d705b2a6158ff8dc1cdfeb_full.jpg" ["memberCount"]=> string(1) "1" ["membersInChat"]=> string(1) "0" ["membersInGame"]=> string(1) "0" ["membersOnline"]=> string(1) "0" ["isPrimary"]=> string(1) "0" } } array(6) { [0]=> array(9) { ["steamID64"]=> string(17) "76561198014922576" ["steamID"]=> string(2) "" ["customURL"]=> string(0) "" ["onlineState"]=> string(7) "in-game" ["stateMessage"]=> string(83) "In-Game
Counter-Strike - Join" ["avatarIcon"]=> string(114) "http://media.steampowered.com/steamcommunity/public/images/avatars/8d/8da1ff6d0828f1b9eaaba2b377241fb6546e29e0.jpg" ["avatarMedium"]=> string(121) "http://media.steampowered.com/steamcommunity/public/images/avatars/8d/8da1ff6d0828f1b9eaaba2b377241fb6546e29e0_medium.jpg" ["avatarFull"]=> string(119) "http://media.steampowered.com/steamcommunity/public/images/avatars/8d/8da1ff6d0828f1b9eaaba2b377241fb6546e29e0_full.jpg" ["friendsSince"]=> string(10) "1257454075" } [1]=> array(9) { ["steamID64"]=> string(17) "76561198004048278" ["steamID"]=> string(14) "[Ht] # S!lence" ["customURL"]=> string(0) "" ["onlineState"]=> string(7) "in-game" ["stateMessage"]=> string(84) "In-Game
Counter-Strike - Join" ["avatarIcon"]=> string(114) "http://media.steampowered.com/steamcommunity/public/images/avatars/cc/cc4963b516bd025f4b67904637aa90b0ec819c81.jpg" ["avatarMedium"]=> string(121) "http://media.steampowered.com/steamcommunity/public/images/avatars/cc/cc4963b516bd025f4b67904637aa90b0ec819c81_medium.jpg" ["avatarFull"]=> string(119) "http://media.steampowered.com/steamcommunity/public/images/avatars/cc/cc4963b516bd025f4b67904637aa90b0ec819c81_full.jpg" ["friendsSince"]=> string(10) "1262189240" } [2]=> array(9) { ["steamID64"]=> string(17) "76561198016688074" ["steamID"]=> string(12) "Blade </3" ["customURL"]=> string(0) "" ["onlineState"]=> string(7) "in-game" ["stateMessage"]=> string(83) "In-Game
Counter-Strike - Join" ["avatarIcon"]=> string(114) "http://media.steampowered.com/steamcommunity/public/images/avatars/ea/eae67c85d7c3d5ae66ccfecfccaed8eec7d9ff1d.jpg" ["avatarMedium"]=> string(121) "http://media.steampowered.com/steamcommunity/public/images/avatars/ea/eae67c85d7c3d5ae66ccfecfccaed8eec7d9ff1d_medium.jpg" ["avatarFull"]=> string(119) "http://media.steampowered.com/steamcommunity/public/images/avatars/ea/eae67c85d7c3d5ae66ccfecfccaed8eec7d9ff1d_full.jpg" ["friendsSince"]=> string(10) "1266702361" } [3]=> array(9) { ["steamID64"]=> string(17) "76561197988072310" ["steamID"]=> string(5) "Deyna" ["customURL"]=> string(0) "" ["onlineState"]=> string(7) "in-game" ["stateMessage"]=> string(83) "In-Game
Counter-Strike - Join" ["avatarIcon"]=> string(114) "http://media.steampowered.com/steamcommunity/public/images/avatars/39/39f94fba8b50a839786c88bfcdb5126e203c14c7.jpg" ["avatarMedium"]=> string(121) "http://media.steampowered.com/steamcommunity/public/images/avatars/39/39f94fba8b50a839786c88bfcdb5126e203c14c7_medium.jpg" ["avatarFull"]=> string(119) "http://media.steampowered.com/steamcommunity/public/images/avatars/39/39f94fba8b50a839786c88bfcdb5126e203c14c7_full.jpg" ["friendsSince"]=> string(10) "1250881526" } [4]=> array(9) { ["steamID64"]=> string(17) "76561197998088885" ["steamID"]=> string(25) "Grajkownia.com | EfCia. ~" ["customURL"]=> string(0) "" ["onlineState"]=> string(7) "in-game" ["stateMessage"]=> string(83) "In-Game
Counter-Strike - Join" ["avatarIcon"]=> string(114) "http://media.steampowered.com/steamcommunity/public/images/avatars/8b/8ba3071181d3cbd338e6ef69eef8e4b453736637.jpg" ["avatarMedium"]=> string(121) "http://media.steampowered.com/steamcommunity/public/images/avatars/8b/8ba3071181d3cbd338e6ef69eef8e4b453736637_medium.jpg" ["avatarFull"]=> string(119) "http://media.steampowered.com/steamcommunity/public/images/avatars/8b/8ba3071181d3cbd338e6ef69eef8e4b453736637_full.jpg" ["friendsSince"]=> string(10) "1269987246" } [5]=> array(9) { ["steamID64"]=> string(17) "76561198005081222" ["steamID"]=> string(4) "p0Lp" ["customURL"]=> string(0) "" ["onlineState"]=> string(7) "in-game" ["stateMessage"]=> string(27) "In-Game
Counter-Strike" ["avatarIcon"]=> string(114) "http://media.steampowered.com/steamcommunity/public/images/avatars/b3/b3943f994c2086a89a77aeb7b7dc2b34b06dbed8.jpg" ["avatarMedium"]=> string(121) "http://media.steampowered.com/steamcommunity/public/images/avatars/b3/b3943f994c2086a89a77aeb7b7dc2b34b06dbed8_medium.jpg" ["avatarFull"]=> string(119) "http://media.steampowered.com/steamcommunity/public/images/avatars/b3/b3943f994c2086a89a77aeb7b7dc2b34b06dbed8_full.jpg" ["friendsSince"]=> string(10) "1267307519" } } 

  • Manager
Opublikowano

Problem ROZWIĄZANY. Jeśli są jakiekolwiek wątpliwości, pytania proszę o założenie nowego tematu.

Wszelkie uzasadnione reklamacje/pretensje/sugestie/rady przyjmuje ekipa forum.

intermedia - profesjonalne rozwiązania Invision Power Board

---

Chcesz uzyskać szybko i sprawnie pomoc? Uzupełnij wersję i adres w profilu.

Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...

Powiadomienie o plikach cookie

Umieściliśmy na Twoim urządzeniu pliki cookie, aby pomóc Ci usprawnić przeglądanie strony. Możesz dostosować ustawienia plików cookie, w przeciwnym wypadku zakładamy, że wyrażasz na to zgodę.