I am using the following code
<?php
$url="http://www.google.com";
$data = file_get_contents( $url );
echo $data;
echo strlen($data);
?>
It works well on my local host but when i upload it to my web domain, file_get_contents gives an empty string as output.
Why this happens? Any idea to solve this problem