I am using the function file_get_contents()
in the script. But it is given false every time.
$image_url = 'http://www.websitename.com/images/imagename.jpg';
$variable = file_get_contents($image_url);
var_dump($variable);
Its returning false
I also checked in phpinfo()
settings of the server. Here allow_url_fopen
is already on
I don't know why it is returning false. Please help me to figure out this. Many thanks in advance.