Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(ini_get('zlib.output_compression')) ini_set('zlib.output_compression', 0);
- $size = getimagesize($path);
- $mime = $size['mime'];
- header('Pragma: public');
- header('Content-Transfer-Encoding: binary');
- header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
- header("Cache-Control: private",false);
- header('Last-Modified: '.gmdate('D, d M Y H:i:s', filemtime($path)).' GMT');
- header("Expires: ".gmdate('D, d M Y H:i:s', time() + 3600*24*10 ).' GMT');
- header("Content-type: " . $mime);
- header("Content-Disposition: attachment; filename="".basename($path)."";" );
- header("Content-Length: " . filesize($path));
- header('Pragma: cache');
- ob_clean();
- flush();
- readfile($path);
- Connection:close
- Content-Encoding:gzip
- Content-Length:20
- Content-Type:text/html; charset=UTF-8
- Date:Mon, 13 Jun 2011 10:33:07 GMT
- Server:Apache/2.2.9 (Debian) PHP/5.3.5-0.dotdeb.0 with Suhosin-Patch mod_ssl/2.2.9 OpenSSL/0.9.8g
- Vary:Accept-Encoding
- X-Powered-By:PHP/5.3.5-0.dotdeb.0
- [Wed Jun 22 19:34:00 2011] [notice] mod_fcgid: process 1377 going graceful shutdown, sending SIGTERM
- [Wed Jun 22 19:34:00 2011] [notice] mod_fcgid: process 1189 going graceful shutdown, sending SIGTERM
- [Wed Jun 22 19:34:06 2011] [notice] mod_fcgid: process /var/www/qomuna.com/web/index.php(1377) exit(communication error), terminated by calling exit(), return code: 0
- [Wed Jun 22 19:34:06 2011] [notice] mod_fcgid: process /var/www/qomuna.com/web/index.php(1189) exit(communication error), terminated by calling exit(), return code: 0
- [Wed Jun 22 19:34:53 2011] [notice] mod_fcgid: call /var/www/qomuna.com/web/index.php with wrapper /var/www/php-fcgi-scripts/web4/.php-fcgi-starter
- [Wed Jun 22 19:34:59 2011] [notice] mod_fcgid: process 1690 going graceful shutdown, sending SIGTERM
- [Wed Jun 22 19:35:05 2011] [notice] mod_fcgid: process /var/www/qomuna.com/web/index.php(1690) exit(communication error), terminated by calling exit(), return code: 0
- [Wed Jun 22 19:35:13 2011] [notice] mod_fcgid: call /var/www/qomuna.com/web/index.php with wrapper /var/www/php-fcgi-scripts/web4/.php-fcgi-starter
- [Wed Jun 22 19:35:13 2011] [notice] mod_fcgid: call /var/www/qomuna.com/web/index.php with wrapper /var/www/php-fcgi-scripts/web4/.php-fcgi-starter
Add Comment
Please, Sign In to add comment