Suppose a file saved on the disk:
HTTP/1.1 200 OK
Date: Thu, 28 Jun 2012 22:11:14 GMT
Pragma: no-cache
Cache-Control: must-revalidate, no-store
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-Length: 1234
Connection: close
Content-Type: text/html
<html ....
Is there any builtin function in php to output the file while at the same time recognizing headers inside it and sending them correctly?
It does not exists but you can use the following
Output
Function Used