Im looking at a snippet i found on the internet but im not sure what one part of the script does.
// parse the Content-Disposition header, if available:
$file_name = $this->getServerVar('HTTP_CONTENT_DISPOSITION') ?
rawurldecode(preg_replace('/(^[^"]+")|("$)/', '', $this->getServerVar('HTTP_CONTENT_DISPOSITION'))) : null;
protected function getServerVar($id)
{
return isset($_SERVER[$id]) ? $_SERVER[$id] : '';
}
I tried to print this "print_r($this->getServerVar('HTTP_CONTENT_RANGE') ?
"
But i get nothing.
Could someone provide in depth information on what exactly HTTP_CONTENT_DISPOSITION is and what is happening in the above code
Also does what does HTTP_CONTENT_RANGE mean?
Thanks!!!