I've my code in test server which uses file_get_contents() to get the status from a url. The test server link is: http://test1one.epizy.com/portal/test_api.php It works as it should and gives me the appropriate "Active" or "Inactive" response from the url.
But it doesn't work on the production server link and gives a blank page: http://thecreamplatform.com/portal/test_api.php The link page contains the following lines of code:
$url = "http://209.208.78.58:8085/cream/verify?msisdn=23480xxxxxxxx";
try {
$result = file_get_contents($url);
echo "<pre>"; print_r($result);
} catch (Exception $e) {
echo "<h1>Error!!!</h1>", $e->getMessage(), "\n";
}
The xxxxxxxx in the above code refers to the mobile number. Can anyone please help me sort out whats causing the issue? Thanks in advance.