All pastes #741192 Raw Edit

gar

public text v1 · immutable
·published 2007-10-18 14:49 UTC
rendered paste body
grep -n 'header(' *
download.php:78:// Now send the file with header() magic
download.php:79:  header("Expires: Mon, 26 Nov 1962 00:00:00 GMT");
download.php:80:  header("Last-Modified: " . gmdate("D,d M Y H:i:s") . " GMT");
download.php:81:  header("Cache-Control: no-cache, must-revalidate");
download.php:82:  header("Pragma: no-cache");
download.php:83:  header("Content-Type: Application/octet-stream");
download.php:84:  header("Content-disposition: attachment; filename=" . $downloa                              ds['orders_products_filename']);
product_thumb.php:163:// the three header() lines -- otherwise no output is show                              n. Or turn on
product_thumb.php:189:          header('Content-type: image/jpeg');
product_thumb.php:210:          header('Content-type: image/jpeg');
product_thumb.php:218:          header('Content-type: image/gif');
product_thumb.php:226:          header('Content-type: image/png');
product_thumb.php3:79:// some header() lines -- otherwise no output is shown.
product_thumb.php3:171:                                 header("ETag: " . $eTag)                              ;
product_thumb.php3:173:                         header("Status: 304 Not Modified                              ");
product_thumb.php3:174:                         header($httpProtocol . " 304 Not                               Modified");
product_thumb.php3:175:                         header("Connection: close");
product_thumb.php3:182:         header('Pragma: ');
product_thumb.php3:183:         header('Expires: ');
product_thumb.php3:186:                         header('ETag: ' . $eTag);
product_thumb.php3:188:                 header('Last-Modified: ' . $lastModified                              HttpFormat);
product_thumb.php3:189:                 header('Cache-Control: private');
product_thumb.php3:192:                 header('Cache-Control: no-cache');
product_thumb.php3:202:                 header("TEST404: TEST404");
product_thumb.php3:203:                 header("Status: 404 Not Found");
product_thumb.php3:204:                 header($httpProtocol . " 404 Not Found")                              ;
product_thumb.php3:211:                 header("Expires: Mon, 26 Jul 1997 05:00:                              00 GMT");                               // Date in the past
product_thumb.php3:212:                 header("Last-Modified: " . gmdate("D, d                               M Y H:i:s") . " GMT");  // Always modified
product_thumb.php3:213:                 header("Cache-Control: no-store, no-cach                              e, must-revalidate");   // HTTP/1.1
product_thumb.php3:214:                 header("Cache-Control: post-check=0, pre                              -check=0", false);              // HTTP/1.1
product_thumb.php3:215:                 header("Pragma: no-cache");            /                              / HTTP/1.0
product_thumb.php3:216:                 header('Content-type: image/jpeg');
product_thumb.php3:250: header('Content-type: image/jpeg');
product_thumb.php3:255: header('Content-type: image/gif');
product_thumb.php3:260: header('Content-type: image/png');
resize.php:51:          header('Content-type: image/jpeg');
resize.php:56:          header('Content-type: image/gif');