All pastes #969080 Raw Edit

Someone

public text v1 · immutable
·published 2008-04-03 13:41 UTC
rendered paste body
try {
  $arr = get_headers($url, 1);
} catch (Exception $e) {
  echo 'Caught exception: ',  $e->getMessage(), "\n";
  echo "<span class = \"warning\">WE ARE SORRY ! We can't evaluate right now the exchange rates between currencies.</span>";
}
if(is_array($arr) && ($arr[0]=="HTTP/1.1 200 OK")){
.....