Send request headers with file_get_contents

Is it possible to send some headers request with file_get_contents($url) while opening URL streams?

For example, to send the HTTP_REFERER?
How?

Why don’t you look at the example at www.php.net/file_get_contents where they show you how to send headers while using the function? It’s in the 4th example if I’m not mistaken.

Sure, use a stream context (made by using [url=http://php.net/stream_context_create]stream_context_create()) as shown in Example #4 on the [url=http://php.net/file_get_contents]file_get_contents() manual page.