Skip to content
Advertisement

Tag: x-sendfile

Fastest Way to Serve a File Using PHP

I’m trying to put together a function that receives a file path, identifies what it is, sets the appropriate headers, and serves it just like Apache would. The reason I am doing this is because I need to use PHP to process some information about the request before serving the file. Speed is critical virtual() isn’t an option Must work

Advertisement