Merhaba, localhostumda çalışan kod site üzerinde çalışmıyor sanırım bir güvenlik kuralına takılıyor. Hosting'de whm erişimim de var ancak bulamadım bir türlü sizce nedir? cPanel kullanıyorum.

//STEAM GROUP    $url = "http://steamcommunity.com/gid/".STEAM_GID."/memberslistxml/";    $xml = simplexml_load_file($url);    $memberscount   = (int) $xml->memberCount;    $memberscount = number_format( $memberscount );    $membersingame  = (int) $xml->groupDetails->membersInGame;    $membersingame = number_format( $membersingame );    $membersonline  = (int) $xml->groupDetails->membersOnline;    $membersonline = number_format( $membersonline );    };    if(MODULE_DISCORD == "ON"){    //DISCORD SERVER    $json_url = "https://discordapp.com/api/guilds/".DISCORD_SERVER_ID."/widget.json";    $json_string = file_get_contents($json_url);    $parsed_json = json_decode($json_string,true);        $discord_name       = $parsed_json['name'];        $discord_members    = $parsed_json['members'];    };
Discord İçin

<section class="section discord text-center" id="discord"> <h1>Discord Topluluğumuza Katıl!</h1> 
 
  <div class="row"> <div class="col-md-4 members" id="discord"> <h2 class="discord"><?php echo $discord_name; ?></h2> 
 
 <div class="row"> <div class="col-md-6" id="discord-total"> <span class="discord"></span> </div> <div class="col-md-6" id="discord-online"> <?php if(count($discord_members) >= "100"){echo "100+";}else{echo count($discord_members);}; ?> <span class="discord">ÇEVRİMİÇİ</span> </div> </div> <!-- //Remove lines abowe if you don't have paid Discord module //END --> 
 <!-- //Uncomment to use without Paid module// <?php if(count($discord_members) >= "100"){echo "100+";}else{echo count($discord_members);}; ?> <span>USERS ONLINE</span> //Uncomment to use without Paid module// --> 
 </div> <div class="col-md-8 members" id="online"> 
 <div class="row"> <?php $i = 0; foreach ($discord_members as $member) {if(++$i > 22) break; ;?> 
 <div class="col align-self-center"> <img src="<?=SITE_URL;?>/img/loader-50.webp" data-src="<?php echo $member['avatar_url'];?>" class="lazy rounded-circle discord-user" title="<?php echo $member['username'];?>" data-bs-toggle="tooltip" data-bs-placement="top" alt="<?php echo $member['username'];?>"/> </div> <?php ;};?> 
 </div><!-- row --> </div> 
 </div> <div class="discord-invite"> <a href="<?php echo DISCORD_INVITE_LINK; ?>" target="_blank" class="btn btn-outline-light btn-lg"><i class="fab fa-discord"></i> Discord sunucusuna katıl!</a> </div> </section>



STEAM İÇİN
<section class="section community text-center" id="community"> <div class="tabs">  <div class="spoon is-medium is-primary">Narkoz Steam Topluluğu</div> </div> <div class="row"> <div class="col-md-4 members" id="total"> <?php echo $memberscount; ?> <span>ÜYELER</span> </div> <div class="col-md-4 members" id="online"> <?php echo $membersonline; ?> <span>AKTİF ÜYELER</span> </div> <div class="col-md-4 members" id="ingame"> <?php echo $membersingame; ?> <span>OYUNDA</span> </div> </div> <div> <a href="https://steamcommunity.com/gid/<?php echo STEAM_GID; ?>" target="_blank" class="btn btn-outline-light btn-lg"><i class="fab fa-steam-symbol"></i> Steam Grubuna Katıl!</a></div> </section