Today I came across one situation.
I am using file_get_contents to get token from a file for a user.
file_get_contents
$data=file_get_contents(\"http://ex
file_get_contents is synchronous. You can get FALSE sometimes because of different reasons like network fail, DNS fail etc.
FALSE
Use curl instead: it's faster and more customizable. You can wait for good response recursive if you need 100% success.