I want to suppress warnings, I searched on SO, found some solutions but they aren't working.
I am getting Warning at following function(file_get_contents
) when the internet connection is off. I know this functions requires internet connection, when the machine is not connected this function will show warning.
$hash = unserialize(file_get_contents("http://vimeo.com/api/v2/video/$vid_id.php"));
first I tried using "@"
then I used error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);
then I used error_reporting(0);
can anybody tell me how can I suppress these warnings?