Basically, I would like to send the X-Sendfile header to the browser to send the file, but I do not want to call it if the X-Sendfile is not available or is installed on the server. How can I check this in PHP? Or if it is impossible to verify in PHP, than to verify that it is installed PERIOD? I would prefer to check for the presence of the X-Sendfile in PHP, since it would be easier for me to do this, since it is part of a package that will work on other sites and servers ... Perhaps if I just use this with the PHP function header, will it return something if not installed ??
Thanks guys:)
source
share