$test = json_decode(file_get_contents(URL));
print_r($test);
above code was working perfect just a day back on my bluehost account. not it stopped working and giving me error.
Warning: file_get_contents(URL): failed to open stream: No route to host in /home/xxx/public_html/test1.php on line 8
URL is like external resource of API. any clue about it? i tried to contacted with bluehost support team and they said they can't help me to resolve php errors and my guess is, this is server side issue. edit: same code is working wamp server installed on my local machine. EDIT:
TRACEROUTE Via ssh
traceroute http://url
http://url: Name or service not known
Cannot handle "host" cmdline arg `http://url' on position 1 (argc 1)