Lines Matching refs:file
20 * @param string $file local file to send
32 function sendFile($file, $mime, $dl, $cache, $public = false, $orig = null, $csp = []) argument
71 $fmtime = @filemtime($file);
76 $orig = $file;
93 http_sendfile($file);
96 $fp = @fopen($file, "rb");
98 http_rangeRequest($fp, filesize($file), $mime);
101 echo "Could not read $file - bad permissions?";
144 * @param string $file reference to the file variable
150 function checkFileStatus(&$media, &$file, $rev = '', $width = 0, $height = 0) argument
161 if (str_starts_with($MIME, 'image/')) $file = media_get_from_URL($media, $EXT, $CACHE);
162 if (!$file) {
180 $file = mediaFN($media, $rev);
184 if (!file_exists($file)) {