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?

Why don’t you look at the example at 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=]stream_context_create()) as shown in Example #4 on the [url=]file_get_contents() manual page.