I am trying to create a script that will send a binary file to a client's web browser when they click a link that points to the script. The link would contain the information about the file to send. This is done so that I can have the script check the referrer to insure that the download request was referred from my domain. I am unable to figure out how to make the script send the file to the client. I am sure there is a very well documented way to do this, but I am having a hard time finding it, can anyone point me in the right direction?