Lines Matching defs:file
17 * @param int $timestamp lastmodified time of the cache file
60 * Let the webserver send the given file via x-sendfile method
62 * @param string $file absolute path of file to send
67 function http_sendfile($file)
73 header("X-LIGHTTPD-send-file: $file");
77 header("X-Sendfile: $file");
82 $file = DOKU_REL . substr($file, strlen(fullpath(DOKU_INC)) + 1);
83 header("X-Accel-Redirect: $file");
90 * Send file contents supporting rangeRequests
94 * @param resource $fh - file handle for an already open file
95 * @param int $size - size of the whole file
96 * @param int $mime - MIME type of the file
110 // no range requested - send the whole file
115 // we only understand byte ranges - send the whole file
167 // send file content
190 * return true if there exists a gzip version of the uncompressed file
191 * (samepath/samefilename.sameext.gz) created after the uncompressed file
203 if (filemtime($gzip) < filemtime($uncompressed_file)) { // filemtime returns false (0) if file doesn't exist
217 * @param string $cache cache file name
250 * @param string $file file name
253 function http_cached_finish($file, $content)
257 // save cache file
258 io_saveFile($file, $content);
259 if (DOKU_HAS_GZIP) io_saveFile("$file.gz", $content);