Forum Moderators: coopster
I'm experiencing a strange problem working with the file_get_contents function :
If I enter directly the URL, it's working fine :
$data = file_get_contents("http://www.domain.com/image.ashx?1234");
But, if I put the URL into a variable, it's not working anymore :
$url = "http://www.domain.com/image.ashx?1234";
$data = file_get_contents($url);
Any ideas?
Thanks in advance for your help.