I am using HTTP API in my application. When I am calling that URL using file() method it is working fine in localhost but not in server.
I am using centos server.
In Command prompt :
#telnet www.example.com
it is getting resonse throw terminal but not in browser
Code :
<?php
$url = "http://www.example.com";
$arr = file($url);
echo '<pre>';
print_r($arr);
echo '</pre>';
?>