Will the following code timeout after 2 seconds IF the url it's calling is hung up by a DDOS attack?
$ctx = stream_context_create(array(
'http' => array(
'timeout' => 2,
)
)
);
$data = @file_get_contents( $urlPrimary, 0, $ctxPrimary )