Guest User

Untitled

a guest
Jul 17th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.17 KB | None | 0 0
  1. if(ini_get('zlib.output_compression')) ini_set('zlib.output_compression', 0);
  2.  
  3. $size = getimagesize($path);
  4. $mime = $size['mime'];
  5.  
  6. header('Pragma: public');
  7. header('Content-Transfer-Encoding: binary');
  8. header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
  9. header("Cache-Control: private",false);
  10. header('Last-Modified: '.gmdate('D, d M Y H:i:s', filemtime($path)).' GMT');
  11. header("Expires: ".gmdate('D, d M Y H:i:s', time() + 3600*24*10 ).' GMT');
  12. header("Content-type: " . $mime);
  13. header("Content-Disposition: attachment; filename="".basename($path)."";" );
  14. header("Content-Length: " . filesize($path));
  15. header('Pragma: cache');
  16. ob_clean();
  17. flush();
  18. readfile($path);
  19.  
  20. Connection:close
  21. Content-Encoding:gzip
  22. Content-Length:20
  23. Content-Type:text/html; charset=UTF-8
  24. Date:Mon, 13 Jun 2011 10:33:07 GMT
  25. 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
  26. Vary:Accept-Encoding
  27. X-Powered-By:PHP/5.3.5-0.dotdeb.0
  28.  
  29. [Wed Jun 22 19:34:00 2011] [notice] mod_fcgid: process 1377 going graceful shutdown, sending SIGTERM
  30. [Wed Jun 22 19:34:00 2011] [notice] mod_fcgid: process 1189 going graceful shutdown, sending SIGTERM
  31. [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
  32. [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
  33. [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
  34. [Wed Jun 22 19:34:59 2011] [notice] mod_fcgid: process 1690 going graceful shutdown, sending SIGTERM
  35. [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
  36. [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
  37. [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