Note Issue appear in Azure Server.It wont allow get details to CURL.
I have an issue with a display post in footer.When I try to get it via file_get_content
as well as used a CURL
but still have issue.
$url="https://medium.com/@username/latest?format=json";
$homepage = file_get_contents($url);
echo "<pre>";
print_r($homepage);
echo "</pre>";
Its work in a Linux but when I move to windows Azure after this it will give following error.
Warning: file_get_contents(https://medium.com/@username/latest?format=json) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden