All pastes #255651 Raw Edit

Stuff

public text v1 · immutable
#255651 ·published 2006-11-23 06:02 UTC
rendered paste body
function check_origin()
{
  echo ($_SERVER['HTTP_REFERER']);
  return(substr_compare($_SERVER['HTTP_REFERER'], "mydomain.com", 11, 12, true));
}


and I am trying to call this function with:

     echo (check_origin());

in order to see if it returns 0