This isn't in the php documentation on php.net - so I asked here.
If I were (for example) to use $contents = file_get_contents("www.bbc.co.uk/news")
while www.bbc.co.uk/news
was offline, what would file_get_contents()
return to my php script in the variable $contents
?
Would $contents
be empty? Or would $contents
be some form of error? (for example) such as
when viewing in chrome? (hypothetically)