<?php
$url="http://thebot.net/api/post2.php";
$c = file_get_contents($url);
$c = utf8_encode($c);
$r = json_decode($c, true);
$user=$r->{'username'};
$gr1=$r->{'usergroup'};
$gr2=$r->{'secondary'};
$posts=$r->{'posts'};
//$action=switch($gr2);
if(is_array($gr2) && !(in_array("Coder",$gr2)))
{
echo '<a href="https://www.coderprofile.com/coder/Enterprise-PHP" target="_blank"><img src="https://www.coderprofile.com/images/badges/follow-me/style-2/user-bar-1.png" /></a>';
}
if(isset($gr1) && $gr1 == 'TBN Member'))
{
echo '<a href="http://thebot.net/payments.php" target="_blank">click here to remove this ad</a> sponsored by TBN';
}
?>
my script can see it fine. its added to a white list. you can't see it cause you don't have access to it. it is a json record if that makes you feel any better.I we can't see whatever you are trying to get from that URL because we are not logged id, how is your script supposed to?
And as I said, put an "echo" statement to show what your are getting back. Not after your run it through a dozen other functions, but right at the source.