Hello everyone,
i don't know if what i'm going to state is a problem in my code or something else,
the following is a code that i'm using :
$shgleh = "http://website_address/supports/gamemaster.php?id=".$userid;
$res = file_get_contents($shgleh) ;
$objDOM = new DOMDocument();
$objDOM->loadXML($res);
$finalarray = array() ;
$root = $objDOM->childNodes->item(0);
$characters = $root->childNodes->item(3);
$rating = $root->childNodes->item(0)->nodeValue;
for($i=0; $i<$characters->childNodes->length; $i++)
{
$tag = $characters->childNodes->item($i);
$finalarray[$i] = $tag->nodeValue;
}
NOTE : the returned value of
$shgleh an xml string
the problem is that when i'm using this code on my local environment(which is the same as the online environment) everything goes well and that data being retrieved but when uploading this code to the online environment i don't get any data and the page keeps blank!!!!!



is there anything needs to be changed before uploading this piece of code...???
any suggestions